X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Makefile;h=ed6907448fb0b875b8fa6a101d8016148b4aa708;hb=d9dddbf556674bf125ecd925b24e43a5cf2a568a;hp=b98a4f70d1b5fc3ca34fa0d4abd646382cbeace7;hpb=8b97be054572fc769619184dcc174e280a5c851c;p=linux-2.6-block.git diff --git a/Makefile b/Makefile index b98a4f70d1b5..ed6907448fb0 100644 --- a/Makefile +++ b/Makefile @@ -782,6 +782,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)