Board index » cppbuilder » Code optimization & "aus" compiler warning
Code optimization & "aus" compiler warning
2004-10-12 02:36:56 AM
Using C++ 5.
Apparently optimizing for speed ("Release") confuses the compiler enough so
that it erroneously reports variables as having been assigned values that
are not used, when in fact they are used. This is particularly annoying
when it produces hundreds of warning messages. So, what I would like to do
is conditionally turn this warning OFF when compiling under "Release" mode.
Compiler flags "Od", "O1" and "O2" seem like good candidates to check, but I
do not know how to do that.
#if("Release" mode --- I don't know what to check)
#pragma option -w-aus