Only add the compilation warnings if the compiler is GCC.
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx> * compiler-flags.m4: Only add the compilation warnings if the compiler is GCC. svn path=/trunk/; revision=684
This commit is contained in:

committed by
Arturo Espinosa

parent
06231f4f07
commit
2df03af7a2
@ -1,3 +1,8 @@
|
||||
1999-02-22 Miguel de Icaza <miguel@nuclecu.unam.mx>
|
||||
|
||||
* compiler-flags.m4: Only add the compilation warnings if the
|
||||
compiler is GCC.
|
||||
|
||||
1999-02-20 Timur Bakeyev <mc@bat.ru>
|
||||
|
||||
* gnome.m4: Added and exported ZVT_LIBS.
|
||||
|
@ -7,6 +7,10 @@ AC_DEFUN([GNOME_COMPILE_WARNINGS],[
|
||||
|
||||
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
|
||||
warnCFLAGS=
|
||||
if test "x$GCC" != xyes; then
|
||||
enable_compile_warnings=no
|
||||
fi
|
||||
|
||||
if test "x$enable_compile_warnings" != "xno"; then
|
||||
if test "x$GCC" = "xyes"; then
|
||||
case " $CFLAGS " in
|
||||
@ -58,6 +62,9 @@ AC_DEFUN([GNOME_CXX_WARNINGS],[
|
||||
|
||||
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
|
||||
warnCXXFLAGS=
|
||||
if test "x$GCC" != xyes; then
|
||||
enable_compile_warnings=no
|
||||
fi
|
||||
if test "x$enable_cxx_warnings" != "xno"; then
|
||||
if test "x$GCC" = "xyes"; then
|
||||
case " $CXXFLAGS " in
|
||||
|
Reference in New Issue
Block a user