rpms/kernel/devel kernel-2.6.spec, 1.2992, 1.2993 linux-2.6-debug-extra-warnings.patch, 1.1, 1.2

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Fri Mar 16 00:33:32 UTC 2007


Author: davej

Update of /cvs/dist/rpms/kernel/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv22676

Modified Files:
	kernel-2.6.spec linux-2.6-debug-extra-warnings.patch 
Log Message:
* Thu Mar 15 2007 Dave Jones <davej at redhat.com>
- Enable a bunch more warnings (These will probably get turned off later,
  for now they're mostly there for curiosity sake).



Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/kernel-2.6.spec,v
retrieving revision 1.2992
retrieving revision 1.2993
diff -u -r1.2992 -r1.2993
--- kernel-2.6.spec	15 Mar 2007 23:10:27 -0000	1.2992
+++ kernel-2.6.spec	16 Mar 2007 00:33:30 -0000	1.2993
@@ -2074,6 +2074,10 @@
 
 %changelog
 * Thu Mar 15 2007 Dave Jones <davej at redhat.com>
+- Enable a bunch more warnings (These will probably get turned off later,
+  for now they're mostly there for curiosity sake).
+
+* Thu Mar 15 2007 Dave Jones <davej at redhat.com>
 - Rename linux-2.6-debug-Wundef.patch to linux-2.6-debug-extra-warnings.patch
 
 * Thu Mar 15 2007 Dave Jones <davej at redhat.com>

linux-2.6-debug-extra-warnings.patch:
 Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

Index: linux-2.6-debug-extra-warnings.patch
===================================================================
RCS file: /cvs/dist/rpms/kernel/devel/linux-2.6-debug-extra-warnings.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- linux-2.6-debug-extra-warnings.patch	15 Mar 2007 23:10:27 -0000	1.1
+++ linux-2.6-debug-extra-warnings.patch	16 Mar 2007 00:33:30 -0000	1.2
@@ -1,17 +1,25 @@
-
--Wundef
 -Werror-implicit-function-declaration
+ This makes builds fail sooner if something is implicitly defined instead
+ of having to wait half an hour for it to fail at the linking stage.
+
+-Wextra -Wno-unused-parameter -Wno-missing-field-initializers
+ Enable the kitchen-sink of 'mostly harmless' warnings, and exclude
+ some of the really noisy ones.
 
 Signed-off-by: Dave Jones <davej at redhat.com>
 
---- linux-2.6.17.noarch/Makefile~	2006-08-19 23:22:50.000000000 -0400
-+++ linux-2.6.17.noarch/Makefile	2006-08-19 23:23:06.000000000 -0400
-@@ -308,7 +308,7 @@ LINUXINCLUDE    := -Iinclude \
+diff --git a/Makefile b/Makefile
+index 6393738..c5d60f2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -313,7 +313,9 @@ LINUXINCLUDE    := -Iinclude \
  CPPFLAGS        := -D__KERNEL__ $(LINUXINCLUDE)
  
  CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
 -                   -fno-strict-aliasing -fno-common
-+                   -fno-strict-aliasing -fno-common -Wstrict-prototypes -Wundef -Werror-implicit-function-declaration
++                   -fno-strict-aliasing -fno-common \
++		   -Werror-implicit-function-declaration \
++		   -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
  AFLAGS          := -D__ASSEMBLY__
  
  # Read KERNELRELEASE from include/config/kernel.release (if it exists)




More information about the fedora-cvs-commits mailing list