From f8053a3a4bf10648df968264d8cc9519a0e0b45e Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Sun, 9 Oct 2016 20:51:46 -0500 Subject: [PATCH] configure: Enable C99 language standard Also disable some obsolete warnings. Signed-off-by: Michael Jones Reviewed-by: Jan Friesse --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fc6df13b..cd1dcc54 100644 --- a/configure.ac +++ b/configure.ac @@ -81,6 +81,10 @@ fi sinclude(corosync-default.m4) AC_PROG_CC +AC_PROG_CC_C99 +if test "x$ac_cv_prog_cc_c99" = "xno"; then + AC_MSG_ERROR(["C99 support is required"]) +fi AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET @@ -561,7 +565,6 @@ WARNLIST=" missing-prototypes missing-declarations strict-prototypes - declaration-after-statement pointer-arith write-strings cast-align @@ -572,7 +575,6 @@ WARNLIST=" format-nonliteral no-long-long unsigned-char - gnu89-inline no-strict-aliasing " -- 2.39.5