|
@@ -569,7 +569,7 @@ 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)
|
|
|
+KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
|
|
|
|
|
|
ifdef CONFIG_FRAME_POINTER
|
|
|
KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
|
|
@@ -616,7 +616,7 @@ CHECKFLAGS += $(NOSTDINC_FLAGS)
|
|
|
KBUILD_CFLAGS += $(call cc-option,-Wdeclaration-after-statement,)
|
|
|
|
|
|
# disable pointer signed / unsigned warnings in gcc 4.0
|
|
|
-KBUILD_CFLAGS += $(call cc-option,-Wno-pointer-sign,)
|
|
|
+KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
|
|
|
|
|
|
# disable invalid "can't wrap" optimizations for signed / pointers
|
|
|
KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
|