Author: tabish
Date: Tue Nov 10 00:56:53 2009
New Revision: 834287
URL:
http://svn.apache.org/viewvc?rev=834287&view=revLog:
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
;;