]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - Makefile
Apply preempt_rt patch-4.9-rt1.patch.xz
[zynq/linux.git] / Makefile
index 1c750f1d35423d2aaffb07b0cf61a06993234034..b1037774e8e83c86fc93afbd705acf8591c6b4ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -790,6 +790,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)