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

index 41baa928a164aeedbbb09a9a643fd7a6a86bc452..bf058abee379b647c3cad6b69e2f791807431b96 100644 (file)
@@ -317,16 +317,6 @@ index 98239d56924c..5ed3edefebde 100644
                   -std=gnu89
  
  KBUILD_AFLAGS_KERNEL :=
-@@ -783,6 +783,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)
 diff --git a/arch/Kconfig b/arch/Kconfig
 index 4e949e58b192..3b26d76933fb 100644
 --- a/arch/Kconfig
index d4b603499b05f64e51b96e527678c26a94700ef8..9ce205c992649ba31de9b3865ab3c42902e5be69 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)
This page took 0.08049 seconds and 4 git commands to generate.