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

Compiler warnings on QMap

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.5.3
    • None
    • Ubuntu 9.10, gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1

    Description

      GCC generates the following warnings for QMap in combination with QFutureInterface:

      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h: In destructor 'QFutureInterface<T>::~QFutureInterface() [with T = bool]':
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:588: warning: dereferencing pointer 'y' does break strict-aliasing rules
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:586: note: initialized from here
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:588: warning: dereferencing pointer 'y' does break strict-aliasing rules
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:586: note: initialized from here
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h: In destructor 'QFutureInterface<T>::~QFutureInterface() [with T = bool]':
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:588: warning: dereferencing pointer 'y' does break strict-aliasing rules
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:586: note: initialized from here
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:588: warning: dereferencing pointer 'y' does break strict-aliasing rules
      /opt/qtsdk-2009.04/qt/include/QtCore/qmap.h:586: note: initialized from here
      In file included from /opt/qtsdk-2009.04/qt/include/QtCore/QFutureWatcher:1

      Attachments

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

        Activity

          People

            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            ton Ton van den Heuvel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes