Compiler warnings have returned for tests on gcc
------------------------------------------------
Key: AMQCPP-134
URL: https://issues.apache.org/activemq/browse/AMQCPP-134
Project: ActiveMQ C++ Client
Issue Type: Bug
Reporter: Nathan Mittler
Assignee: Nathan Mittler
Priority: Trivial
Fix For: 2.1
from recent changes to the confgure.ac and Makefile.in scripts, the compiler
warnings for the test projects have returned. The changes are using the
CXX_FLAGS variable to store the settings. The expectation being that by
specifying activemq_test_CXXFLAGS, you would override the CXX_FLAGS. This,
however, does not happen. I believe the CXX_FLAGS, being user override flags,
are appended at the end of activemq_test_CXXFLAGS by the autotools. This has
the affect of -Wall getting added to the gcc command line after all of our
ignore directives - thus causing warnings to appear.
I believe the solution is to use another variable in the configure.ac to store
our parameters (e.g. AMQ_CXXFLAGS) and let CXX_FLAGS truly be user-defined. In
the Makefile.am, the c++ flags line would then look something like this:
activemq_test_CXXFLAGS= $(AMQ_CXXFLAGS)...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.