[packages/kernel/LINUX_4_1] - enable -Werror=incompatible-pointer-types
baggins
baggins at pld-linux.org
Sun Nov 13 11:02:21 CET 2016
commit 33f97ad453f3fa29375e056d58995ec80030e94c
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Nov 13 11:02:03 2016 +0100
- enable -Werror=incompatible-pointer-types
kernel-small_fixes.patch | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/kernel-small_fixes.patch b/kernel-small_fixes.patch
index 8f4f7e0..9f696d7 100644
--- a/kernel-small_fixes.patch
+++ b/kernel-small_fixes.patch
@@ -26,6 +26,18 @@
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 at fb.com>
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/33f97ad453f3fa29375e056d58995ec80030e94c
More information about the pld-cvs-commit
mailing list