Re: warnings



Wagner Correa wrote:

Hello,

When I compile code generated by orbitcpp using g++ with warnings turned on
(-Wall -W -Wunused -Wpointer-arith -Wcast-align -Wwrite-strings -Wlong-long
-Wshadow -Wconversion), I get many warnings like these:

/usr/include/orbitcpp-2.0
/orbitcpp/orb-cpp/smartpointers/objectptr_out.h:41: warning: declaration of
'ptr' shadows a member of 'this

/include/orbitcpp-2.0/orbitcpp/orb-cpp/orbitcpp_exception.h:198: warning:
deprecated conversion from string constant to `char*'

/usr/include/orbitcpp-2.0/orbitcpp/orb-cpp/orbitcpp_poa.h:88: warning: base
class `class PortableServer::ServantBase' should be explicitly initialized
in the copy constructor

Is there a workaround for this?
If you want to get these warnings from your own code as well, then no. If you are prepared to miss out on those warnings, you can -Wno-some-warning to cut out the warnings that orbitcpp code causes. Note that the files that you have mentioned are all part of the distribution not generated files. So it would be a relatively straight forward task to get the either the latest release or CVS head and revise those files so that they don't issue warnings and submit a patch.

--
Bowie Owens

CSIRO Mathematical & Information Sciences
phone  : +61 3 9545 8055
fax    : +61 3 9545 8080
mobile : 0425 729 875
email  : Bowie Owens csiro au




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]