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

Compiler warning due to missing "override" keyword for destructors

    XMLWordPrintable

Details

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

    Description

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

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes