[pygobject] configure.ac: Use -std=c90 and error on	declaration-after-statement
- From: Simon Feltman <sfeltman src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [pygobject] configure.ac: Use -std=c90 and error on	declaration-after-statement
 
- Date: Mon,  3 Mar 2014 10:47:46 +0000 (UTC)
 
commit 1fa93ddc51b2d223d772aee7930fc96c0ced0e00
Author: Simon Feltman <sfeltman src gnome org>
Date:   Mon Mar 3 02:44:12 2014 -0800
    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9f77a04..f700bbe 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
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]