diff options
author | Maciej Wereski <m.wereski@partner.samsung.com> | 2017-02-06 02:47:56 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2017-02-06 02:47:56 -0800 |
commit | a6802153aa3aab9af8777461fc9a9cb1165cbfab (patch) | |
tree | 4445e75d83c6da1e030546a55ac3f61b4d44ba81 | |
parent | 6eda68d2a18c9b97cecacf9c43337c06ec8e38ea (diff) | |
parent | ada4531ee38f567cfa30377c60e2eda6c237322d (diff) | |
download | kernel-common-a6802153aa3aab9af8777461fc9a9cb1165cbfab.tar.gz kernel-common-a6802153aa3aab9af8777461fc9a9cb1165cbfab.tar.bz2 kernel-common-a6802153aa3aab9af8777461fc9a9cb1165cbfab.zip |
Merge "kbuild: move -Wunused-const-variable to W=1 warning level" into tizen
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | scripts/Makefile.build | 1 |
2 files changed, 4 insertions, 2 deletions
@@ -622,9 +622,10 @@ endif endif KBUILD_CFLAGS += $(stackp-flag) -# This warning generated too much noise in a regular build. -# Use make W=1 to enable this warning (see scripts/Makefile.build) +# These warnings generated too much noise in a regular build. +# Use make W=1 to enable them (see scripts/Makefile.build) KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) +KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) ifdef CONFIG_FRAME_POINTER KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d5d859c80729..0f45f76a2768 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -69,6 +69,7 @@ warning-1 += -Wmissing-prototypes warning-1 += -Wold-style-definition warning-1 += $(call cc-option, -Wmissing-include-dirs) warning-1 += $(call cc-option, -Wunused-but-set-variable) +warning-1 += $(call cc-option, -Wunused-const-variable) warning-1 += $(call cc-disable-warning, missing-field-initializers) warning-2 := -Waggregate-return |