Messages in this thread | | | Date | Mon, 23 Jan 2012 22:18:34 +0100 | From | Michal Marek <> | Subject | Re: [PATCH] kbuild: disable -Wmissing-field-initializers for W=1 |
| |
On Mon, Jan 23, 2012 at 05:54:10AM +0200, Kirill A. Shutemov wrote: > -Wmissing-field-initializers is too noisy to be useful on W=1. Let's > move it to W=2. > > Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> > --- > scripts/Makefile.build | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index d2b366c..1535a2f 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -62,7 +62,7 @@ endif > ifdef KBUILD_ENABLE_EXTRA_GCC_CHECKS > warning- := $(empty) > > -warning-1 := -Wextra -Wunused -Wno-unused-parameter > +warning-1 := -Wextra -Wunused -Wno-unused-parameter -Wno-missing-field-initializers
I would use $(call cc-disable-warning, missing-field-initializers), so that W=1 has a chance of working with gcc 3.x.
Michal
| |