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

null pointer subtraction warnings with Xcode 13.3 toolchain

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.15, 6.2, 6.3
    • None

      With the Xcode 13.3 toolchain there seems to be a lot of warnings like this, both with Qt 5 and Qt 6:

      qtdeclarative/src/qml/qml/ftw/qintrusivelist_p.h:248: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));
                                                                          ^ ~~~~~~~~~~~~~~~
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            vuokko Juha Vuolle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes