Revision: 744
http://freeglut.svn.sourceforge.net/freeglut/?rev=744&view=rev
Author: spanne
Date: 2008-11-02 18:27:21 +0000 (Sun, 02 Nov 2008)
Log Message:
-----------
Fix for bug #1709675 ("probably not be so ISO-conformant"): The C compiler flag
-Werror is not used by default anymore, a separate configure flag
--enable-warnings-as-errors has been introduced for this purpose, which is off
by default.
Modified Paths:
--------------
trunk/freeglut/freeglut/configure.ac
Modified: trunk/freeglut/freeglut/configure.ac
===================================================================
--- trunk/freeglut/freeglut/configure.ac 2008-11-02 18:14:02 UTC (rev 743)
+++ trunk/freeglut/freeglut/configure.ac 2008-11-02 18:27:21 UTC (rev 744)
@@ -76,9 +76,16 @@
[AS_HELP_STRING([--enable-warnings],
[use all gcc compiler warnings @<:@default=yes@:>@])])
if test "x$enable_warnings" != xno -a "x$GCC" = xyes; then
- CFLAGS="$CFLAGS -Wall -pedantic -Werror"
+ CFLAGS="$CFLAGS -Wall -pedantic"
fi
+AC_ARG_ENABLE([warnings-as-errors],
+[AS_HELP_STRING([--enable-warnings-as-errors],
+ [make all warnings into errors @<:@default=no@:>@])])
+if test "x$enable_warnings_as_errors" = xyes -a "x$GCC" = xyes; then
+ CFLAGS="$CFLAGS -Werror"
+fi
+
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[enable debugging code (for developers) @<:@default=no@:>@])])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|