diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-03-03 02:44:12 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-03-03 02:44:12 -0800 |
commit | 1fa93ddc51b2d223d772aee7930fc96c0ced0e00 (patch) | |
tree | ca8eb0f687a10031ea34ebf43acdb2cf8a243b4d | |
parent | cee414ab5725c51d79a2c6aa1e8760e9fd754545 (diff) | |
download | pygobject-1fa93ddc51b2d223d772aee7930fc96c0ced0e00.tar.gz |
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.
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
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 |