Wireshark-commits: [Wireshark-commits] rev 46475: /trunk/ /trunk/: acinclude.m4 configure.ac
Date: Sun, 09 Dec 2012 02:52:33 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=46475

User: guy
Date: 2012/12/08 06:52 PM

Log:
 Add some additional arguments to AC_WIRESHARK_GCC_CFLAGS_CHECK() to make
 it do an additional check, if it finds that a given compiler option is
 supported by the compiler, to see whether it's supported but
 undesirable.  The arguments are a chunk of code to try to compile with
 -Werror, and a string to be used in the "checking..." message printed
 when trying to compile the cunk of code.
 
 Try enabling -Wshadow again, but have it check whether
 
 	extern int atoi(char *p);
 
 	int
 	foo(char *p)
 	{
 		int (*fptr)(char *p) = atoi;
 
 		return fptr(p) * 2;
 	}
 
 compiles with -Wshadow and -Werror, so that we don't use -Wshadow with
 compilers that complain about that; some older versions of GCC complain
 about that, and it's really not worth our effort to eliminate or rename
 arguments in function prototypes to make -Wshadow work even with those
 compilers.

Directory: /trunk/
  Changes    Path            Action
  +77 -8     acinclude.m4    Modified
  +22 -4     configure.ac    Modified