|
@@ -773,6 +773,9 @@ KBUILD_CFLAGS += $(call cc-option,-Werror=strict-prototypes)
|
|
|
# Prohibit date/time macros, which would make the build non-deterministic
|
|
|
KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
|
|
|
|
|
|
+# enforce correct pointer usage
|
|
|
+KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types)
|
|
|
+
|
|
|
# use the deterministic mode of AR if available
|
|
|
KBUILD_ARFLAGS := $(call ar-option,D)
|
|
|
|