aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@nuclecu.unam.mx>1999-02-23 05:27:11 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-02-23 05:27:11 +0800
commit2df03af7a2ab4362e8dd32f3221777d09a90e42a (patch)
treec3fb35738a0d690590ba43d6bfa271cac77ea9d0
parent06231f4f07c3fa20ab8e62b469eb1311e07bd3a5 (diff)
downloadgsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.tar
gsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.tar.gz
gsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.tar.bz2
gsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.tar.lz
gsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.tar.xz
gsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.tar.zst
gsoc2013-evolution-2df03af7a2ab4362e8dd32f3221777d09a90e42a.zip
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
-rw-r--r--macros/ChangeLog5
-rw-r--r--macros/compiler-flags.m47
2 files changed, 12 insertions, 0 deletions
diff --git a/macros/ChangeLog b/macros/ChangeLog
index 6195dc9846..156763c7fc 100644
--- a/macros/ChangeLog
+++ b/macros/ChangeLog
@@ -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.
diff --git a/macros/compiler-flags.m4 b/macros/compiler-flags.m4
index fb5d1d25e2..951aab7f5d 100644
--- a/macros/compiler-flags.m4
+++ b/macros/compiler-flags.m4
@@ -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