diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -731,15 +731,15 @@ stackp-flags-$(CONFIG_STACKPROTECTOR_STRONG) := -fstack-protector-strong | |||
731 | KBUILD_CFLAGS += $(stackp-flags-y) | 731 | KBUILD_CFLAGS += $(stackp-flags-y) |
732 | 732 | ||
733 | ifdef CONFIG_CC_IS_CLANG | 733 | ifdef CONFIG_CC_IS_CLANG |
734 | KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,) | 734 | KBUILD_CPPFLAGS += -Qunused-arguments |
735 | KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier) | 735 | KBUILD_CFLAGS += -Wno-format-invalid-specifier |
736 | KBUILD_CFLAGS += $(call cc-disable-warning, gnu) | 736 | KBUILD_CFLAGS += -Wno-gnu |
737 | # Quiet clang warning: comparison of unsigned expression < 0 is always false | 737 | # Quiet clang warning: comparison of unsigned expression < 0 is always false |
738 | KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare) | 738 | KBUILD_CFLAGS += -Wno-tautological-compare |
739 | # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the | 739 | # CLANG uses a _MergedGlobals as optimization, but this breaks modpost, as the |
740 | # source of a reference will be _MergedGlobals and not on of the whitelisted names. | 740 | # source of a reference will be _MergedGlobals and not on of the whitelisted names. |
741 | # See modpost pattern 2 | 741 | # See modpost pattern 2 |
742 | KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) | 742 | KBUILD_CFLAGS += -mno-global-merge |
743 | else | 743 | else |
744 | 744 | ||
745 | # These warnings generated too much noise in a regular build. | 745 | # These warnings generated too much noise in a regular build. |