summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel McCallum <npmccallum@redhat.com>2013-12-16 16:10:05 -0500
committerroot <root@ipa-01.t.vda.li>2014-02-10 19:08:57 +0200
commit034cdafed5d48f6f03a0ded9f40beee8f89fed01 (patch)
tree2ccbfe3f3163e369c7f320972f155e271080367c
parent8b9c73968f3d60bb7b15190162e23f4be85298a6 (diff)
downloadfreeipa-034cdafed5d48f6f03a0ded9f40beee8f89fed01.zip
freeipa-034cdafed5d48f6f03a0ded9f40beee8f89fed01.tar.gz
freeipa-034cdafed5d48f6f03a0ded9f40beee8f89fed01.tar.xz
Enable building in C99 mode
C99 is supported on all compilers we target and provides some useful features, including: * Standard struct initializers * Compound literals * For-loop declarations * Standard bool type * Variable arrays (use with caution) * Too many others to mention...
-rw-r--r--Makefile2
-rw-r--r--daemons/configure.ac2
-rw-r--r--ipa-client/configure.ac2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0a300b4..af68e42 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,7 @@ endif
PYTHON ?= $(shell rpm -E %__python || echo /usr/bin/python2)
-CFLAGS := -g -O2 -Werror -Wall -Wextra -Wformat-security -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers $(CFLAGS)
+CFLAGS := -g -O2 -Wall -Wextra -Wformat-security -Wno-unused-parameter -Wno-sign-compare -Wno-missing-field-initializers $(CFLAGS)
export CFLAGS
# Uncomment to increase Java stack size for Web UI build in case it fails
diff --git a/daemons/configure.ac b/daemons/configure.ac
index e57dad2..7086d8e 100644
--- a/daemons/configure.ac
+++ b/daemons/configure.ac
@@ -10,7 +10,7 @@ AM_INIT_AUTOMAKE([foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
AM_MAINTAINER_MODE
-AC_PROG_CC
+AC_PROG_CC_C99
AC_STDC_HEADERS
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
diff --git a/ipa-client/configure.ac b/ipa-client/configure.ac
index 82b0961..3462562 100644
--- a/ipa-client/configure.ac
+++ b/ipa-client/configure.ac
@@ -13,7 +13,7 @@ AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
-AC_PROG_CC
+AC_PROG_CC_C99
AC_STDC_HEADERS
AC_DISABLE_STATIC