mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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... Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
fd55da9a27
commit
5c299758b9
2
Makefile
2
Makefile
@ -52,7 +52,7 @@ endif
|
|||||||
|
|
||||||
PYTHON ?= $(shell rpm -E %__python || echo /usr/bin/python2)
|
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
|
export CFLAGS
|
||||||
|
|
||||||
# Uncomment to increase Java stack size for Web UI build in case it fails
|
# Uncomment to increase Java stack size for Web UI build in case it fails
|
||||||
|
@ -10,7 +10,7 @@ AM_INIT_AUTOMAKE([foreign])
|
|||||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
|
||||||
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
AC_PROG_CC
|
AC_PROG_CC_C99
|
||||||
AC_STDC_HEADERS
|
AC_STDC_HEADERS
|
||||||
AC_DISABLE_STATIC
|
AC_DISABLE_STATIC
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
@ -13,7 +13,7 @@ AM_INIT_AUTOMAKE([foreign])
|
|||||||
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC_C99
|
||||||
AC_STDC_HEADERS
|
AC_STDC_HEADERS
|
||||||
AC_DISABLE_STATIC
|
AC_DISABLE_STATIC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user