lkml.org 
[lkml]   [2011]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH] [1/98] kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
    Date
    2.6.35-longterm review patch.  If anyone has any objections, please let me know.

    ------------------
    From: Dave Jones <davej@redhat.com>

    [ upstream commit af0e5d565d2fffcd97d1e2d89669d627cc04e8b8 ]

    Disable the new -Wunused-but-set-variable that was added in gcc 4.6.0
    It produces more false positives than useful warnings.

    This can still be enabled using W=1

    [AK: dropped W=1 support in backport]
    Signed-off-by: Dave Jones <davej@redhat.com>
    Acked-by: Sam Ravnborg <sam@ravnborg.org>
    Tested-by: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: Michal Marek <mmarek@suse.cz>
    Signed-off-by: Andi Kleen <ak@linux.intel.com>

    Index: linux-2.6.35.y/Makefile
    ===================================================================
    --- linux-2.6.35.y.orig/Makefile
    +++ linux-2.6.35.y/Makefile
    @@ -546,6 +546,9 @@ ifndef CONFIG_CC_STACKPROTECTOR
    KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
    endif

    +# This warning generated too much noise in a regular build.
    +KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
    +
    ifdef CONFIG_FRAME_POINTER
    KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
    else

    \
     
     \ /
      Last update: 2011-07-27 02:45    [W:0.019 / U:93.344 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site