On ke, 2017-01-18 at 16:27 +0000, Chris Wilson wrote: > On Wed, Jan 18, 2017 at 05:56:13PM +0200, Joonas Lahtinen wrote: > > > > On ke, 2017-01-18 at 12:18 +0000, Chris Wilson wrote: > > > > > > -subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror > > > +subdir-ccflags-y := -Wno-override-init # used frequently for "inheritance" > > > > Why always on, if somebody upper level decides to -Werror, this is > > kinda unexpected for them? > > We intentionally use the { .a = 0, .a = 1 }. That is flagged by the set > of warnings enabled by W=1. If the user is using Werror, then they are > faced with an intentionally broken build. > > Our choice, if we want to be W=1 clean, is to either markup using #pragma > or turn off the warning. Guess we can then merge this. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx