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

Please make sure that the LOG4CXX_* macro's can be used as ordinary statements.

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

    Details

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

      Description

      The current definition of the LOG4CXX_* macro's is dubious – these macro's can trigger unexpected compiler errors. The attached test program results in the following compiler output:

      $ LC_ALL=C g++ -o conditional-logging -I/usr/local/include -Wall -Werror -W conditional-logging.cpp -L/usr/local/lib -llog4cxx
      conditional-logging.cpp: In function 'int main(int, char**)':
      conditional-logging.cpp:8: error: 'else' without a previous 'if'

        Attachments

        Issue Links

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              bart.vanassche Bart Van Assche

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment