[packages/kernel/LINUX_3_18] - enable -Werror=incompatible-pointer-types

baggins baggins at pld-linux.org
Sun Nov 13 11:03:20 CET 2016


commit 7b24dca783f0c1fadfe0d3c85dda3cc4e22aec76
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Nov 13 11:03:07 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 d4b6034..9ce205c 100644
--- a/kernel-small_fixes.patch
+++ b/kernel-small_fixes.patch
@@ -26,3 +26,15 @@
  				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)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kernel.git/commitdiff/7b24dca783f0c1fadfe0d3c85dda3cc4e22aec76



More information about the pld-cvs-commit mailing list