Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
0.10.0
-
None
-
None
-
All
Description
In converting some code to Log4CXX ended up with an if-else like this:
if(bMiniDumpSuccessful == TRUE)
LOG4CXX_FATAL( mainLogger, "Core Dump Successful!" );
else
...
This won't compile unless you either surround the logging statement with braces or leave off the semicolon. The above code essentially produces something like this:
if(bMiniDumpSuccessful == TRUE)
{
if (mainLogger->isFatalEnabled())
}
;
else
And it rightly complains that the else has no if associated with it.
Attachments
Attachments
Issue Links
- relates to
-
LOGCXX-490 conditional expression is constant
- Resolved