Thanks! Merged into my tree, Karel
On 05/27/11 03:04 PM, Michael Haubenwallner wrote: > Hello! > > While the check 'for const overload' should give "yes" for recent gcc, it > does give "no" due to a warning in the check-code and -Werror being set. > > Attached is a patch to fix this warning. > > The lines found in config.log: > >> configure:12893: checking for const overload >> configure:12926: x86_64-pc-linux-gnu-g++ -c -Werror -Wall -Wwrite-strings >> -pthread -O2 -pipe -fno-strict-aliasing -D_REENTRANT -D_GNU_SOURCE >> -DQT_SHARED -DQT3_SUPPORT -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support >> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui >> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSql conftest.cpp>&5 >> configure: In function 'void foo(S&, const S&)': >> configure:12918:10: error: variable 'i' set but not used >> [-Werror=unused-but-set-variable] >> cc1plus: all warnings being treated as errors >> >> configure:12929: $? = 1 >> configure:12949: result: no > > As a result, compilation with gcc-4.6.0 fails this way: > >> x86_64-pc-linux-gnu-g++ -I../include -Wall -Wwrite-strings -pthread -O2 >> -pipe -fno-strict-aliasing -D_REENTRANT -D_GNU_SOURCE -DQT_SHARED >> -DQT3_SUPPORT -I/usr/include/qt4 -I/usr/include/qt4/Qt3Support >> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui >> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtSql -DPIC -fPIC -c >> poa_impl.cc -o poa_impl.pic.o >> poa_impl.cc: In constructor 'MICOPOA::POA_impl::POA_impl(const char*, >> PortableServer::POAManager_ptr, const PolicyList&, MICOPOA::POA_impl*, >> CORBA::ORB_ptr)': >> poa_impl.cc:1955:80: error: passing 'const ObjVar<CORBA::Policy>' as 'this' >> argument of 'ObjVar<T>::operator T*() [with T = CORBA::Policy]' discards >> qualifiers [-fpermissive] >> poa_impl.cc:1955:80: error: invalid conversion from 'CORBA::Policy*' to >> 'CORBA::Object*' [-fpermissive] >> ../include/mico/security/transportsecurity.h:581:40: error: initializing >> argument 1 of 'static TransportSecurity::ObjectCredentialsPolicy* >> TransportSecurity::ObjectCredentialsPolicy::_narrow(CORBA::Object_ptr)' >> [-fpermissive] >> make[1]: *** [poa_impl.pic.o] Error 1 >> make: *** [system] Error 1 > > With "checking for const overload... yes", compilation with gcc-4.6.0 > succeeds. > > Thank you! > > /haubi/ > > > > ------------------------------------------------------------------------------ > vRanger cuts backup time in half-while increasing security. > With the market-leading solution for virtual backup and recovery, > you get blazing-fast, flexible, and affordable data protection. > Download your free trial now. > http://p.sf.net/sfu/quest-d2dcopy1 > > > > _______________________________________________ > Mico-devel mailing list > Mico-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mico-devel -- Karel Gardas kgar...@objectsecurity.com ObjectSecurity Ltd. http://www.objectsecurity.com ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Mico-devel mailing list Mico-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mico-devel