Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-490

conditional expression is constant

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lanoxx Sebastian Geiger

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment