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

null pointer subtraction warnings with Xcode 13.3 toolchain

    XMLWordPrintable

Details

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

    Description

      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));
                                                                          ^ ~~~~~~~~~~~~~~~
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: