From 1fa93ddc51b2d223d772aee7930fc96c0ced0e00 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Mon, 3 Mar 2014 02:44:12 -0800 Subject: configure.ac: Use -std=c90 and error on declaration-after-statement Replace gcc option of -std=c9x with c90 and add -Werror=declaration-after-statement This ensures we keep compatibility with msvc builds. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9f77a049..f700bbe8 100644 --- a/configure.ac +++ b/configure.ac @@ -254,12 +254,13 @@ if test "x$GCC" = "xyes"; then JH_ADD_CFLAG([-Wall]) JH_ADD_CFLAG([-Werror=unused-variable]) JH_ADD_CFLAG([-fno-strict-aliasing]) + JH_ADD_CFLAG([-Werror=declaration-after-statement]) case $host_os in solaris*) ;; *) - JH_ADD_CFLAG([-std=c9x]) + JH_ADD_CFLAG([-std=c90]) ;; esac -- cgit v1.2.1