www.digitalmars.com         C & C++   DMDScript  

c++.stl.port - Warning 12 building STLPort

reply "Dimitri Kaparis" <dkaparis universalstudyhelper.com> writes:
Hello,

When building STL port (latest package from
http://www.digitalmars.com/download/freecompiler.html and compiler version
8.33), for the release builds I get numerous warnings such as below:





    dmc -c -o"..\build\static\release\complex_io.obj" -Ae -Ar -DSTRICT -D__B
UILDING_STLPORT -I../stlport -o+all -Nc -D_MT "complex_io.cpp"
complex_io.cpp(145) : Warning 12: variable 'bool  __do_handle_exceptions'
used b
efore set
complex_io.cpp(145) : Warning 12: variable 'bool  __do_handle_exceptions'
used b
efore set

Also, when building my project which uses STL Port, with optimizations
enabled, I get warnings for this and various other variables being used
before set. Without optimizations, none of these occur.
Is this a misconfiguration, or a problem in the compiler, and is it safe to
ignore these?

Regards,
Dimitri
Mar 28 2003
parent "Jim Jennings" <jwjenn mindspring.com> writes:
"Dimitri Kaparis" <dkaparis universalstudyhelper.com> wrote in message
news:b6190s$fau$1 digitaldaemon.com...
 Hello,

 When building STL port (latest package from
 http://www.digitalmars.com/download/freecompiler.html and compiler version
 8.33), for the release builds I get numerous warnings such as below:

 UILDING_STLPORT -I../stlport -o+all -Nc -D_MT "complex_io.cpp"
 complex_io.cpp(145) : Warning 12: variable 'bool  __do_handle_exceptions'
 used b
 efore set
 complex_io.cpp(145) : Warning 12: variable 'bool  __do_handle_exceptions'
 used b
 efore set

 Also, when building my project which uses STL Port, with optimizations
 enabled, I get warnings for this and various other variables being used
 before set. Without optimizations, none of these occur.
 Is this a misconfiguration, or a problem in the compiler, and is it safe

 ignore these?

 Regards,
 Dimitri

Dimitri, I asked about "__do_handle_exceptions" warning in February, and in a reply from Richard Grant dated February 21, he said that they are harmless. Subsequently, I built the STLport library, and it has run without any problem for me. I have seen other posts about the optimization problem, so apparently that is a bug in 8.33, but someone else will have to give you a more definite answer on that question. Jim J.
Mar 29 2003