Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45291

Can't build against Qt with -Werror=zero-as-null-pointer-constant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.6.1
    • 5.4.1
    • None
    • Fedora 20, using gcc-c++-4.8.3-7.fc20.x86_64.

    Description

      There are at least two places where 0 is used as a null pointer constant in macros, which invade user code and cannot be suppressed with -isystem. These should be changed to use Q_NULLPTR.

      1. default parameters in Q_OBJECT via QT_TR_FUNCTIONS, in qobjectdefs.h.
      2. QT_MESSAGELOG_FILE and QT_MESSAGELOG_FUNC in qlogging.h.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mmutz Marc Mutz
            matthew.woehlke Matthew Woehlke
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes