Ethereal-dev: [Ethereal-dev] Patch: Missing initializers fixed and additional warnings

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jörg Mayer <jmayer@xxxxxxxxx>
Date: Sat, 16 Jun 2001 15:22:54 +0200
Hello,

in order to see some additional warings with gcc, I turned on -W.
This give some useful and some useless warnings. So far I've fixed
the source of one of the useless warnings (missing initializers) and
turned off the other (unused variables). I'm not completely happy
with the unused vars so maybe we should leave them on.

 Ciao
     Jörg


Changelog: <jmayer@xxxxxxxxx>
	- Turn on additional warnings with gcc
	- Remove the missinge initializer warnings

-- 
Jörg Mayer <jmayer@xxxxxxxxx>
Signature fault, brain dumped
Index: ethereal/configure.in
===================================================================
RCS file: /cvsroot/ethereal/configure.in,v
retrieving revision 1.128
diff -u -u -r1.128 configure.in
--- configure.in	2001/06/02 06:21:13	1.128
+++ configure.in	2001/06/16 13:00:50
@@ -87,7 +87,7 @@
 # If we're running gcc, add '-Wall' to CFLAGS.
 AC_MSG_CHECKING(to see if we can add '-Wall' to CFLAGS)
 if test x$GCC != x ; then
-  CFLAGS="-Wall $CFLAGS"
+  CFLAGS="-Wall -W -Wno-unused $CFLAGS"
   AC_MSG_RESULT(yes)
 else
   AC_MSG_RESULT(no)

Attachment: hfinfo.diff.gz
Description: application/gunzip