I am trying to build my product with the maximum level of g++ compiler 
warnings and with -std=c++0x to check for compatibility with the upcoming 
std. Where I include activemq headers this causes several warnings.

/usr/local/include/activemq-cpp-3.2.3/activemq/core/ActiveMQConnectionFactory.h:33:
 
warning: ‘class activemq::core::ActiveMQConnectionFactory’ has 
pointer data members
/usr/local/include/activemq-cpp-3.2.3/activemq/core/ActiveMQConnectionFactory.h:33:
 
warning:   but does not override 
‘activemq::core::ActiveMQConnectionFactory(const 
activemq::core::ActiveMQConnectionFactory&)’
/usr/local/include/activemq-cpp-3.2.3/activemq/core/ActiveMQConnectionFactory.h:33:
 
warning:   or ‘operator=(const 
activemq::core::ActiveMQConnectionFactory&)’
In file included from 
/usr/local/include/activemq-cpp-3.2.3/decaf/lang/Pointer.h:25,
                 from 
/usr/local/include/activemq-cpp-3.2.3/activemq/commands/Command.h:25,
                 from 
/usr/local/include/activemq-cpp-3.2.3/activemq/transport/TransportListener.h:22,
                 from 
/usr/local/include/activemq-cpp-3.2.3/activemq/transport/DefaultTransportListener.h:22,

It looks like the pointer member it is worried about is FactorySettings* 
settings.

/usr/local/include/activemq-cpp-3.2.3/decaf/util/Comparator.h: In 
instantiation of 
‘decaf::util::Comparator<decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter> >’:
/usr/local/include/activemq-cpp-3.2.3/decaf/lang/Pointer.h:354: 
instantiated from 
‘decaf::lang::PointerComparator<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>’
/usr/include/c++/4.4/bits/stl_tree.h:453:   instantiated from 
‘std::_Rb_tree<decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, std::pair<const 
decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
activemq::core::Dispatcher*>, std::_Select1st<std::pair<const 
decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
activemq::core::Dispatcher*> >, 
decaf::lang::PointerComparator<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
std::allocator<std::pair<const 
decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
activemq::core::Dispatcher*> > >’
/usr/include/c++/4.4/bits/stl_map.h:128:   instantiated from 
‘std::map<decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
activemq::core::Dispatcher*, 
decaf::lang::PointerComparator<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
std::allocator<std::pair<const 
decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
activemq::core::Dispatcher*> > >’
/usr/local/include/activemq-cpp-3.2.3/decaf/util/StlMap.h:42: instantiated 
from 
‘decaf::util::StlMap<decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
activemq::core::Dispatcher*, 
decaf::lang::PointerComparator<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter> >’
/usr/local/include/activemq-cpp-3.2.3/activemq/core/ActiveMQConnection.h:105: 
  instantiated from here
/usr/local/include/activemq-cpp-3.2.3/decaf/util/Comparator.h:40: warning: 
base class ‘struct 
std::binary_function<decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, 
decaf::lang::Pointer<activemq::commands::ConsumerId, 
decaf::util::concurrent::atomic::AtomicRefCounter>, bool>’ has a 
non-virtual destructor
/usr/local/include/activemq-cpp-3.2.3/decaf/util/Comparator.h: In 
instantiation of 
‘decaf::util::Comparator<decaf::lang::Pointer<activemq::commands::ProducerId, 
decaf::util::concurrent::atomic::AtomicRefCounter> >’:

I am using activemq-cpp version 3.2.3 on ubuntu with GCC version 4.4.3.

Is there any chance of these being fixed please? A clean compile as a user 
of activemq-cpp would be nice....

Regards,

Andrew Marlow


___________________________________________________________
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and delete this e-mail. Any unauthorised copying, 
disclosure or distribution of the material in this e-mail is prohibited.

Please refer to 
http://www.bnpparibas.co.uk/en/information/legal_information.asp?Code=ECAS-845C5H
  for additional disclosures.

Reply via email to