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/SWIG@5644 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
15bf63ca01
commit
412a8d9ca2
1 changed files with 3 additions and 2 deletions
|
|
@ -1,13 +1,14 @@
|
||||||
dnl Available from the GNU Autoconf Macro Archive at:
|
dnl Available from the GNU Autoconf Macro Archive at:
|
||||||
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_compile_warnings.html
|
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_compile_warnings.html
|
||||||
dnl
|
dnl
|
||||||
|
dnl Modified from original to increase the warning levels from -Wall
|
||||||
AC_DEFUN([AC_COMPILE_WARNINGS],
|
AC_DEFUN([AC_COMPILE_WARNINGS],
|
||||||
[AC_MSG_CHECKING(maximum warning verbosity option)
|
[AC_MSG_CHECKING(maximum warning verbosity option)
|
||||||
if test -n "$CXX"
|
if test -n "$CXX"
|
||||||
then
|
then
|
||||||
if test "$GXX" = "yes"
|
if test "$GXX" = "yes"
|
||||||
then
|
then
|
||||||
ac_compile_warnings_opt='-Wall'
|
ac_compile_warnings_opt='-Wall -ansi -pedantic'
|
||||||
fi
|
fi
|
||||||
CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
|
CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
|
||||||
ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
|
ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
|
||||||
|
|
@ -17,7 +18,7 @@ if test -n "$CC"
|
||||||
then
|
then
|
||||||
if test "$GCC" = "yes"
|
if test "$GCC" = "yes"
|
||||||
then
|
then
|
||||||
ac_compile_warnings_opt='-Wall'
|
ac_compile_warnings_opt='-Wall -ansi -pedantic'
|
||||||
fi
|
fi
|
||||||
CFLAGS="$CFLAGS $ac_compile_warnings_opt"
|
CFLAGS="$CFLAGS $ac_compile_warnings_opt"
|
||||||
ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
|
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