projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5800cec
)
Added an option to enable gcc compiler warnings.
author
Christopher John Purnell
<cjp@lost.org.uk>
Wed, 3 Dec 2003 19:03:13 +0000
(19:03 +0000)
committer
Christopher John Purnell
<cjp@lost.org.uk>
Wed, 3 Dec 2003 19:03:13 +0000
(19:03 +0000)
I've explicitly excluded the one about adding parentheses.
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@380
7f0cb862
-5218-0410-a997-
914c9d46530a
configure.in
patch
|
blob
|
history
diff --git
a/configure.in
b/configure.in
index
88eef9a
..
96fb21c
100644
(file)
--- a/
configure.in
+++ b/
configure.in
@@
-50,6
+50,13
@@
fi
AC_SUBST(LIBRARY)
AC_SUBST(HEADER)
+AC_ARG_ENABLE(warnings,
+[ --enable-warnings Enable gcc compiler warnings],
+if test "x$GCC" == xyes
+then
+ CFLAGS="$CFLAGS -Wall -Wno-parentheses -Werror"
+fi)
+
AC_OUTPUT(\
Makefile \
doc/Makefile \