Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 273861 Details for
Bug 366579
sys-kernel/*-sources: Silence gcc-4.6.0 -Wunused-but-set-variable warning
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
silence -Wunused-but-set-variable GCC warnings for 2.6.39
silence-gcc-4.6.0-warnings-2.6.39.patch (text/plain), 975 bytes, created by
Stratos Psomadakis (RETIRED)
on 2011-05-18 18:11:45 UTC
(
hide
)
Description:
silence -Wunused-but-set-variable GCC warnings for 2.6.39
Filename:
MIME Type:
Creator:
Stratos Psomadakis (RETIRED)
Created:
2011-05-18 18:11:45 UTC
Size:
975 bytes
patch
obsolete
>diff --git a/Makefile b/Makefile >index 41ea6fb..842af69 100644 >--- a/Makefile >+++ b/Makefile >@@ -559,6 +559,10 @@ ifndef CONFIG_CC_STACKPROTECTOR > KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector) > endif > >+# This warning generated too much noise in a regular build. >+# Use make W=1 to enable this warning (see scripts/Makefile.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 >diff --git a/scripts/Makefile.build b/scripts/Makefile.build >index d5f925a..c81dde2 100644 >--- a/scripts/Makefile.build >+++ b/scripts/Makefile.build >@@ -80,6 +80,7 @@ KBUILD_EXTRA_WARNINGS += -Wredundant-decls > KBUILD_EXTRA_WARNINGS += -Wshadow > KBUILD_EXTRA_WARNINGS += -Wswitch-default > KBUILD_EXTRA_WARNINGS += $(call cc-option, -Wvla,) >+KBUILD_EXTRA_WARNINGS += $(call cc-option, -Wunused-but-set-variable) > KBUILD_CFLAGS += $(KBUILD_EXTRA_WARNINGS) > endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 366579
:
272601
|
273859
| 273861