Remove -ansi from default compilation flags

Closes #1610
This commit is contained in:
William S Fulton 2021-03-19 22:57:39 +00:00
commit 67cfaf5a80
2 changed files with 6 additions and 3 deletions

View file

@ -7,8 +7,11 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.1.0 (in progress) Version 4.1.0 (in progress)
=========================== ===========================
2020-10-19: wsfulton
#1610 Remove -ansi from default compilation flags.
2021-03-19: dot-asm 2021-03-19: dot-asm
#1934 [Java] Clean up typemaps for long long arrays #1934 [Java] Clean up typemaps for long long arrays.
2021-03-19: olly 2021-03-19: olly
#1527 [PHP] Improve PHP object creation in directorin case. #1527 [PHP] Improve PHP object creation in directorin case.

View file

@ -34,7 +34,7 @@ AC_MSG_CHECKING([maximum warning verbosity option])
then then
if test "$GXX" = "yes" if test "$GXX" = "yes"
then then
ac_compile_warnings_opt='-Wall -W -ansi -pedantic' ac_compile_warnings_opt='-Wall -W -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++"
@ -44,7 +44,7 @@ AC_MSG_CHECKING([maximum warning verbosity option])
then then
if test "$GCC" = "yes" if test "$GCC" = "yes"
then then
ac_compile_warnings_opt='-Wall -W -ansi -pedantic' ac_compile_warnings_opt='-Wall -W -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"