You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Thorsten Schöning (Jira)" <lo...@logging.apache.org> on 2020/08/07 14:18:00 UTC

[jira] [Resolved] (LOGCXX-490) conditional expression is constant

     [ https://issues.apache.org/jira/browse/LOGCXX-490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thorsten Schöning resolved LOGCXX-490.
--------------------------------------
    Fix Version/s: 0.11.0
       Resolution: Fixed

I've added the already available improvement, as it shouldn't harm and I'm one of the people who need to support pretty old compilers myself.

> conditional expression is constant
> ----------------------------------
>
>                 Key: LOGCXX-490
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-490
>             Project: Log4cxx
>          Issue Type: Improvement
>            Reporter: Sebastian Geiger
>            Priority: Minor
>             Fix For: 0.11.0
>
>
> When I activate the /W4 warning level in MSVC 2013 I get the following warning:
>  warning C4127: conditional expression is constant 
> The warning appears for all statements that use the LOG4CXX_* macros suchas LOG4CXX_ERROR. I currently get more than 500 if these warnings, which makes identifying more important warnings rather difficult.
> Of course I could disable the warning, but if this is something that could be fixed in the log4cxx code then I think that would be a better solution.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)