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

"Zero as null pointer constant" warning in QtScript

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P4: Low
    • None
    • 5.12.3
    • Qt Script
    • None

    Description

      Using Qt Script headers from Qt 5.12.3 with -Wzero-as-null-pointer-constant compiler option gives following warning:

      In file included from /opt/Qt/5.12.3/clang_64/lib/QtScript.framework/Headers/QScriptEngine:1:
      /opt/Qt/5.12.3/clang_64/lib/QtScript.framework/Headers/qscriptengine.h:297:91: warning: zero as null pointer constant [-Wzero-as-null-pointer-constant]
                                  newFunction(reinterpret_cast<FunctionWithArgSignature>(cptr), 0));
                                                                                                ^
                                                                                                nullptr
      

      As of 21st May 2019, this line of code hasn't been changed yet on master.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            skalee Sebastian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes