X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=Makefile;h=ed6907448fb0b875b8fa6a101d8016148b4aa708;hb=b8b4ead11e9d258ccc9a8aea28cc0ac747b044ef;hp=b98a4f70d1b5fc3ca34fa0d4abd646382cbeace7;hpb=b615d3d406ead1157c6b846c417b71a3b6600776;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)