summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Verhaegen <libv@skynet.be>2009-10-13 15:51:38 +0200
committerLuc Verhaegen <libv@skynet.be>2009-10-13 15:51:38 +0200
commit45ab4a9dbb0262a406970edb1959394faa295421 (patch)
tree4ec95cda6b9ea160bf0e807675440fe35ba57ad8
parentb0cdcde40ba9f249c04fa7c69122575a23edc26b (diff)
Build: remove useless warnings with -std=gnu99 for gcc.
How hard would it have been to have kept X code c89 compatible?
-rw-r--r--configure.ac7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index b6bf571..59ac19a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,8 +39,13 @@ AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AC_PROG_CC
+# -std=gnu99 is needed because otherwise os.h and commas at the end of enums
+# stink up the log. How hard would it have been to avoid those in those
+# headers?
+# The AC_PROG_CC_C99 macro only came into existence at autoconf 2.60,
+# so bluntly force it this way.
if test "x$GCC" = "xyes"; then
- CFLAGS="$CFLAGS -Wall -pedantic"
+ CFLAGS="$CFLAGS -Wall -pedantic -std=gnu99"
fi
AH_TOP([#include "xorg-server.h"])