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

-Wnull-pointer-subtraction when compiling qtdeclarative/src/qml/qml/ftw/qintrusivelist_p.h:244:69

    XMLWordPrintable

Details

    • a1d74b0618 (qt/qtbase/dev) 146b727fb9 (qt/qtbase/6.2) 146b727fb9 (qt/tqtc-qtbase/6.2) a1d74b0618 (qt/tqtc-qtbase/dev) d69d3e3298 (qt/qtbase/6.3)

    Description

      07:42:03: Running steps for project QtDeclarative...
      07:42:03: Starting: "/usr/local/Cellar/cmake/3.21.1/bin/cmake" --build /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtdeclarative --target tst_qquickfolderdialogimpl
      [1/4 0.1/sec] Automatic MOC for target tst_qquickfolderdialogimpl
      [2/4 0.3/sec] Building CXX object tests/auto/quickcontrols2/dialogs/qquickfolderdialogimpl/CMakeFiles/tst_qquickfolderdialogimpl.dir/tst_qquickfolderdialogimpl_autogen/mocs_compilation.cpp.o
      [3/4 0.2/sec] Building CXX object tests/auto/quickcontrols2/dialogs/qquickfolderdialogimpl/CMakeFiles/tst_qquickfolderdialogimpl.dir/tst_qquickfolderdialogimpl.cpp.o
      In file included from /Users/mitch/dev/qt-dev-clang/qtdeclarative/tests/auto/quickcontrols2/dialogs/qquickfolderdialogimpl/tst_qquickfolderdialogimpl.cpp:42:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuickControlsTestUtils/6.3.0/QtQuickControlsTestUtils/private/controlstestutils_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuickControlsTestUtils/6.3.0/QtQuickControlsTestUtils/private/../../../../../../../qt-dev-clang/qtdeclarative/src/quickcontrolstestutils/controlstestutils_p.h:43:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuickTestUtils/6.3.0/QtQuickTestUtils/private/visualtestutils_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuickTestUtils/6.3.0/QtQuickTestUtils/private/../../../../../../../qt-dev-clang/qtdeclarative/src/quicktestutils/quick/visualtestutils_p.h:44:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuick/6.3.0/QtQuick/private/qquickitem_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuick/6.3.0/QtQuick/private/../../../../../../../qt-dev-clang/qtdeclarative/src/quick/items/qquickitem_p.h:59:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuick/6.3.0/QtQuick/private/qquickstate_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQuick/6.3.0/QtQuick/private/../../../../../../../qt-dev-clang/qtdeclarative/src/quick/util/qquickstate_p.h:59:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/qqmlabstractbinding_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/../../../../../../../qt-dev-clang/qtdeclarative/src/qml/qml/qqmlabstractbinding_p.h:57:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/qqmlproperty_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/../../../../../../../qt-dev-clang/qtdeclarative/src/qml/qml/qqmlproperty_p.h:57:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/qqmlcontextdata_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/../../../../../../../qt-dev-clang/qtdeclarative/src/qml/qml/qqmlcontextdata_p.h:60:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/qv4executablecompilationunit_p.h:1:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/../../../../../../../qt-dev-clang/qtdeclarative/src/qml/jsruntime/qv4executablecompilationunit_p.h:57:
      In file included from /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/qintrusivelist_p.h:1:
      /Users/mitch/dev/qt-dev-self-built-clang-debug-non-fw/qtbase/include/QtQml/6.3.0/QtQml/private/../../../../../../../qt-dev-clang/qtdeclarative/src/qml/qml/ftw/qintrusivelist_p.h:244:69: warning: performing pointer subtraction with a null pointer may have undefined behavior [-Wnull-pointer-subtraction]
          return (N *)((char *)node - ((char *)&(((N *)nullptr)->*member) - (char *)nullptr));
                                                                          ^ ~~~~~~~~~~~~~~~
      1 warning generated.
      [4/4 0.2/sec] Linking CXX executable tests/auto/quickcontrols2/dialogs/qquickfolderdialogimpl/tst_qquickfolderdialogimpl
      07:42:23: The process "/usr/local/Cellar/cmake/3.21.1/bin/cmake" exited normally.
      07:42:23: Elapsed time: 00:20.
      

      Clang is built from recent-ish main branch:

      clang version 14.0.0 (https://github.com/llvm/llvm-project.git 871418c5b0d0b6b61c24e3523bcb176c4c571217)
      Target: x86_64-apple-darwin21.1.0
      Thread model: posix
      InstalledDir: /Users/mitch/dev/llvm-project/build/bin
      

      Attachments

        Issue Links

          Activity

            People

              qtqmlteam Qt Qml Team User
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: