activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r834287 - /activemq/activemq-cpp/trunk/activemq-cpp/configure.ac
Date Tue, 10 Nov 2009 00:56:53 GMT
Author: tabish
Date: Tue Nov 10 00:56:53 2009
New Revision: 834287

URL: http://svn.apache.org/viewvc?rev=834287&view=rev
Log:
Add aCC compiler option to turn on ansi for scope rules.

This allows code like the following to work.

void SomeFunc()
{
    // This loop is okay.
    for(int i=0; i<10; i++){//do stuff}

    // This causes an error claiming that "int i" has already 
    // been declared.
    for(int i=0; i<10; i++){//do stuff}
}

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/configure.ac

Modified: activemq/activemq-cpp/trunk/activemq-cpp/configure.ac
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/configure.ac?rev=834287&r1=834286&r2=834287&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/configure.ac (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/configure.ac Tue Nov 10 00:56:53 2009
@@ -179,7 +179,7 @@
 
     if test "$GCC" = "no"; then
        # Assuming aCC Compiler unknown yet if any additional settings are needed.
-       PLAT_CXXFLAGS=""
+       PLAT_CXXFLAGS="-Wc,-ansi_for_scope,on"
     fi
     ;;
 



Mime
View raw message