]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- enable -Werror=incompatible-pointer-types
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 13 Nov 2016 10:02:03 +0000 (11:02 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 13 Nov 2016 10:02:03 +0000 (11:02 +0100)
kernel-small_fixes.patch

index 8f4f7e0abfc3f92cba99a71a28c91a1ed17b9619..9f696d797397ae74c77c687279a771808aed0be6 100644 (file)
                                exit
                        fi
                done
+--- a/Makefile 2016-11-10 20:41:43.646224629 +0100
++++ b/Makefile 2016-11-10 20:40:35.640323501 +0100
+@@ -784,6 +774,9 @@
+ # 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)
 
 From 7a29ac474a47eb8cf212b45917683ae89d6fa13b Mon Sep 17 00:00:00 2001
 From: Chris Mason <clm@fb.com>
This page took 0.063122 seconds and 4 git commands to generate.