diff options
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -659,6 +659,12 @@ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow) | |||
659 | # conserve stack if available | 659 | # conserve stack if available |
660 | KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) | 660 | KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) |
661 | 661 | ||
662 | # disallow errors like 'EXPORT_GPL(foo);' with missing header | ||
663 | KBUILD_CFLAGS += $(call cc-option,-Werror=implicit-int) | ||
664 | |||
665 | # require functions to have arguments in prototypes, not empty 'int foo()' | ||
666 | KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes) | ||
667 | |||
662 | # use the deterministic mode of AR if available | 668 | # use the deterministic mode of AR if available |
663 | KBUILD_ARFLAGS := $(call ar-option,D) | 669 | KBUILD_ARFLAGS := $(call ar-option,D) |
664 | 670 | ||