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

Compiler warning due to missing "override" keyword for destructors

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.12.0
    • Core: Object Model
    • None

      When the warning "-Winconsistent-missing-destructor-override" is enabled in a project, there is a lot of warning in Qt's code, because there is not "Q_DECL_OVERRIDE" or "override" in destructors.

      For example (Mac, Clang, Qt 5.12):

      Qt/5.12.0/clang_64/lib/QtGui.framework/Headers/qimage.h:160: warning: '~QImage' overrides a destructor but is not marked 'override' [-Winconsistent-missing-destructor-override]
      ~QImage();
      ^
      

       

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

            thiago Thiago Macieira
            gbdivers Guillaume Belz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes