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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.4.1
    • Fix Version/s: 5.6.1
    • Labels:
      None
    • Environment:
      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

            Assignee:
            mmutz Marc Mutz
            Reporter:
            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