Default warning level for GCC increased from -Wall to -Wall -ansi -pedantic.
This affects the source code only, not the test-suite or examples. It does affect the compilation of the runtime libraries, but they are history anyway. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
288e98dc69
commit
f979a8d156
1 changed files with 3 additions and 2 deletions
|
|
@ -1,13 +1,14 @@
|
|||
dnl Available from the GNU Autoconf Macro Archive at:
|
||||
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_compile_warnings.html
|
||||
dnl
|
||||
dnl Modified from original to increase the warning levels from -Wall
|
||||
AC_DEFUN([AC_COMPILE_WARNINGS],
|
||||
[AC_MSG_CHECKING(maximum warning verbosity option)
|
||||
if test -n "$CXX"
|
||||
then
|
||||
if test "$GXX" = "yes"
|
||||
then
|
||||
ac_compile_warnings_opt='-Wall'
|
||||
ac_compile_warnings_opt='-Wall -ansi -pedantic'
|
||||
fi
|
||||
CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
|
||||
ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
|
||||
|
|
@ -17,7 +18,7 @@ if test -n "$CC"
|
|||
then
|
||||
if test "$GCC" = "yes"
|
||||
then
|
||||
ac_compile_warnings_opt='-Wall'
|
||||
ac_compile_warnings_opt='-Wall -ansi -pedantic'
|
||||
fi
|
||||
CFLAGS="$CFLAGS $ac_compile_warnings_opt"
|
||||
ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue