lkml.org 
[lkml]   [2012]   [Jan]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] kbuild: disable -Wmissing-field-initializers for W=1
    Date
    -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
    warning-1 += -Wmissing-declarations
    warning-1 += -Wmissing-format-attribute
    warning-1 += -Wmissing-prototypes
    @@ -75,6 +75,7 @@ warning-2 += -Wcast-align
    warning-2 += -Wdisabled-optimization
    warning-2 += -Wnested-externs
    warning-2 += -Wshadow
    +warning-2 += -Wmissing-field-initializers
    warning-2 += $(call cc-option, -Wlogical-op)

    warning-3 := -Wbad-function-cast
    --
    1.7.8.3


    \
     
     \ /
      Last update: 2012-01-23 12:57    [W:0.038 / U:0.156 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site