Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. A lot of Warnings ONLY on MingW compiler

A lot of Warnings ONLY on MingW compiler

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 4 Posters 647 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fem_dev
    wrote on 29 Oct 2020, 04:02 last edited by
    #1

    I'm developing a cross-platform Qt C++ project.
    I compile it in different systems and compilers without any warning or error.
    The only system that gives me a different output is:

    • Windows 10 x64 using MingW 8.1 (that comes with Qt 5.15.1 installer)

    In this specific setup I got 10.100 warnings.
    Most of them are repeated, but I will paste here some examples:

    C:\Qt\5.15.1\mingw81_64\include\QtCore\qobjectdefs.h:114: warning: optimization attribute on 'constexpr const QMetaObject* qt_getEnumMetaObject(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
    In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qwindowdefs.h:44,
                     from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qwidget.h:44,
                     from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                     from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/QMainWindow:1,
                     from ..\..\rotortest\App\app.h:4,
                     from ..\..\rotortest\App\main.cpp:1:
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:114:75: warning: optimization attribute on 'constexpr const QMetaObject* qt_getEnumMetaObject(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
         friend Q_DECL_CONSTEXPR const QMetaObject *qt_getEnumMetaObject(ENUM) noexcept { return &staticMetaObject; } \
                                                                               ^~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
     #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                  ^~~~~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmessagebox.h:79:5: note: in expansion of macro 'Q_ENUM'
         Q_ENUM(Icon)
         ^~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:114:48: note: previous definition of 'constexpr const QMetaObject* qt_getEnumMetaObject(QCborValue::Type)' was here
         friend Q_DECL_CONSTEXPR const QMetaObject *qt_getEnumMetaObject(ENUM) noexcept { return &staticMetaObject; } \
                                                    ^~~~~~~~~~~~~~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
     #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                  ^~~~~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qcborvalue.h:135:5: note: in expansion of macro 'Q_ENUM'
         Q_ENUM(Type)
         ^~~~~~
    

    C:\Qt\5.15.1\mingw81_64\include\QtCore\qobjectdefs.h:115: warning: optimization attribute on 'constexpr const char* qt_getEnumName(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:115:62: warning: optimization attribute on 'constexpr const char* qt_getEnumName(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
         friend Q_DECL_CONSTEXPR const char *qt_getEnumName(ENUM) noexcept { return #ENUM; }
                                                                  ^~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
     #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                  ^~~~~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmessagebox.h:79:5: note: in expansion of macro 'Q_ENUM'
         Q_ENUM(Icon)
         ^~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:115:41: note: previous definition of 'constexpr const char* qt_getEnumName(QAbstractItemView::DragDropMode)' was here
         friend Q_DECL_CONSTEXPR const char *qt_getEnumName(ENUM) noexcept { return #ENUM; }
                                             ^~~~~~~~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
     #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                  ^~~~~~~~~~~
    C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qabstractitemview.h:185:5: note: in expansion of macro 'Q_ENUM'
         Q_ENUM(DragDropMode)
         ^~~~~~
    

    C:\Qt\5.15.1\mingw81_64\include\QtGui\qvector2d.h:106: warning: optimization attribute on 'constexpr const QVector2D operator*(const QVector2D&, const QVector2D&)' follows definition but the attribute doesn't match [-Wattributes]
    In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qevent.h:56,
                     from C:\Qt\5.15.1\mingw81_64\include/QtGui/qtextlayout.h:49,
                     from C:\Qt\5.15.1\mingw81_64\include/QtGui/qabstracttextdocumentlayout.h:45,
                     from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qplaintextedit.h:51,
                     from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/QPlainTextEdit:1,
                     from ./ui_app.h:20,
                     from ..\..\rotortest\App\app.cpp:2:
    C:\Qt\5.15.1\mingw81_64\include/QtGui/qvector2d.h:106:102: warning: optimization attribute on 'constexpr const QVector2D operator*(const QVector2D&, const QVector2D&)' follows definition but the attribute doesn't match [-Wattributes]
         Q_DECL_CONSTEXPR friend inline const QVector2D operator*(const QVector2D &v1, const QVector2D &v2);
                                                                                                          ^
    

    C:\Qt\5.15.1\mingw81_64\include\QtGui\qbrush.h:50: In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qbrush.h:50,
    In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qbrush.h:50,
                     from C:\Qt\5.15.1\mingw81_64\include/QtGui/qpalette.h:46,
                     from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qwidget.h:48,
                     from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                     from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/QMainWindow:1,
                     from ..\..\rotortest\App\app.h:4,
                     from ..\..\rotortest\App\app.cpp:1:
    C:\Qt\5.15.1\mingw81_64\include/QtGui/qtransform.h:417:19: note: previous definition of 'QTransform operator-(const QTransform&, qreal)' was here
     inline QTransform operator -(const QTransform &a, qreal n)
                       ^~~~~~~~
    

    And others....

    Is there a way to remove this warnings on this setup above?

    Thank you,

    J J 2 Replies Last reply 29 Oct 2020, 05:28
    0
    • F fem_dev
      29 Oct 2020, 04:02

      I'm developing a cross-platform Qt C++ project.
      I compile it in different systems and compilers without any warning or error.
      The only system that gives me a different output is:

      • Windows 10 x64 using MingW 8.1 (that comes with Qt 5.15.1 installer)

      In this specific setup I got 10.100 warnings.
      Most of them are repeated, but I will paste here some examples:

      C:\Qt\5.15.1\mingw81_64\include\QtCore\qobjectdefs.h:114: warning: optimization attribute on 'constexpr const QMetaObject* qt_getEnumMetaObject(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
      In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qwindowdefs.h:44,
                       from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qwidget.h:44,
                       from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                       from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/QMainWindow:1,
                       from ..\..\rotortest\App\app.h:4,
                       from ..\..\rotortest\App\main.cpp:1:
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:114:75: warning: optimization attribute on 'constexpr const QMetaObject* qt_getEnumMetaObject(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
           friend Q_DECL_CONSTEXPR const QMetaObject *qt_getEnumMetaObject(ENUM) noexcept { return &staticMetaObject; } \
                                                                                 ^~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
       #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                    ^~~~~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmessagebox.h:79:5: note: in expansion of macro 'Q_ENUM'
           Q_ENUM(Icon)
           ^~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:114:48: note: previous definition of 'constexpr const QMetaObject* qt_getEnumMetaObject(QCborValue::Type)' was here
           friend Q_DECL_CONSTEXPR const QMetaObject *qt_getEnumMetaObject(ENUM) noexcept { return &staticMetaObject; } \
                                                      ^~~~~~~~~~~~~~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
       #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                    ^~~~~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qcborvalue.h:135:5: note: in expansion of macro 'Q_ENUM'
           Q_ENUM(Type)
           ^~~~~~
      

      C:\Qt\5.15.1\mingw81_64\include\QtCore\qobjectdefs.h:115: warning: optimization attribute on 'constexpr const char* qt_getEnumName(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:115:62: warning: optimization attribute on 'constexpr const char* qt_getEnumName(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
           friend Q_DECL_CONSTEXPR const char *qt_getEnumName(ENUM) noexcept { return #ENUM; }
                                                                    ^~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
       #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                    ^~~~~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmessagebox.h:79:5: note: in expansion of macro 'Q_ENUM'
           Q_ENUM(Icon)
           ^~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:115:41: note: previous definition of 'constexpr const char* qt_getEnumName(QAbstractItemView::DragDropMode)' was here
           friend Q_DECL_CONSTEXPR const char *qt_getEnumName(ENUM) noexcept { return #ENUM; }
                                               ^~~~~~~~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
       #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                    ^~~~~~~~~~~
      C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qabstractitemview.h:185:5: note: in expansion of macro 'Q_ENUM'
           Q_ENUM(DragDropMode)
           ^~~~~~
      

      C:\Qt\5.15.1\mingw81_64\include\QtGui\qvector2d.h:106: warning: optimization attribute on 'constexpr const QVector2D operator*(const QVector2D&, const QVector2D&)' follows definition but the attribute doesn't match [-Wattributes]
      In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qevent.h:56,
                       from C:\Qt\5.15.1\mingw81_64\include/QtGui/qtextlayout.h:49,
                       from C:\Qt\5.15.1\mingw81_64\include/QtGui/qabstracttextdocumentlayout.h:45,
                       from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qplaintextedit.h:51,
                       from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/QPlainTextEdit:1,
                       from ./ui_app.h:20,
                       from ..\..\rotortest\App\app.cpp:2:
      C:\Qt\5.15.1\mingw81_64\include/QtGui/qvector2d.h:106:102: warning: optimization attribute on 'constexpr const QVector2D operator*(const QVector2D&, const QVector2D&)' follows definition but the attribute doesn't match [-Wattributes]
           Q_DECL_CONSTEXPR friend inline const QVector2D operator*(const QVector2D &v1, const QVector2D &v2);
                                                                                                            ^
      

      C:\Qt\5.15.1\mingw81_64\include\QtGui\qbrush.h:50: In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qbrush.h:50,
      In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qbrush.h:50,
                       from C:\Qt\5.15.1\mingw81_64\include/QtGui/qpalette.h:46,
                       from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qwidget.h:48,
                       from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                       from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/QMainWindow:1,
                       from ..\..\rotortest\App\app.h:4,
                       from ..\..\rotortest\App\app.cpp:1:
      C:\Qt\5.15.1\mingw81_64\include/QtGui/qtransform.h:417:19: note: previous definition of 'QTransform operator-(const QTransform&, qreal)' was here
       inline QTransform operator -(const QTransform &a, qreal n)
                         ^~~~~~~~
      

      And others....

      Is there a way to remove this warnings on this setup above?

      Thank you,

      J Online
      J Online
      jsulm
      Lifetime Qt Champion
      wrote on 29 Oct 2020, 05:28 last edited by
      #2

      @fem_dev Do you set C++ standard in your pro file?
      Are you sure you really use MingW 8.1 and not another one?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply 29 Oct 2020, 16:42
      0
      • F fem_dev
        29 Oct 2020, 04:02

        I'm developing a cross-platform Qt C++ project.
        I compile it in different systems and compilers without any warning or error.
        The only system that gives me a different output is:

        • Windows 10 x64 using MingW 8.1 (that comes with Qt 5.15.1 installer)

        In this specific setup I got 10.100 warnings.
        Most of them are repeated, but I will paste here some examples:

        C:\Qt\5.15.1\mingw81_64\include\QtCore\qobjectdefs.h:114: warning: optimization attribute on 'constexpr const QMetaObject* qt_getEnumMetaObject(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
        In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qwindowdefs.h:44,
                         from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qwidget.h:44,
                         from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                         from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/QMainWindow:1,
                         from ..\..\rotortest\App\app.h:4,
                         from ..\..\rotortest\App\main.cpp:1:
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:114:75: warning: optimization attribute on 'constexpr const QMetaObject* qt_getEnumMetaObject(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
             friend Q_DECL_CONSTEXPR const QMetaObject *qt_getEnumMetaObject(ENUM) noexcept { return &staticMetaObject; } \
                                                                                   ^~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
         #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                      ^~~~~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmessagebox.h:79:5: note: in expansion of macro 'Q_ENUM'
             Q_ENUM(Icon)
             ^~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:114:48: note: previous definition of 'constexpr const QMetaObject* qt_getEnumMetaObject(QCborValue::Type)' was here
             friend Q_DECL_CONSTEXPR const QMetaObject *qt_getEnumMetaObject(ENUM) noexcept { return &staticMetaObject; } \
                                                        ^~~~~~~~~~~~~~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
         #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                      ^~~~~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qcborvalue.h:135:5: note: in expansion of macro 'Q_ENUM'
             Q_ENUM(Type)
             ^~~~~~
        

        C:\Qt\5.15.1\mingw81_64\include\QtCore\qobjectdefs.h:115: warning: optimization attribute on 'constexpr const char* qt_getEnumName(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:115:62: warning: optimization attribute on 'constexpr const char* qt_getEnumName(QMessageBox::Icon)' follows definition but the attribute doesn't match [-Wattributes]
             friend Q_DECL_CONSTEXPR const char *qt_getEnumName(ENUM) noexcept { return #ENUM; }
                                                                      ^~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
         #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                      ^~~~~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmessagebox.h:79:5: note: in expansion of macro 'Q_ENUM'
             Q_ENUM(Icon)
             ^~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:115:41: note: previous definition of 'constexpr const char* qt_getEnumName(QAbstractItemView::DragDropMode)' was here
             friend Q_DECL_CONSTEXPR const char *qt_getEnumName(ENUM) noexcept { return #ENUM; }
                                                 ^~~~~~~~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtCore/qobjectdefs.h:116:30: note: in expansion of macro 'Q_ENUM_IMPL'
         #define Q_ENUM(x) Q_ENUMS(x) Q_ENUM_IMPL(x)
                                      ^~~~~~~~~~~
        C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qabstractitemview.h:185:5: note: in expansion of macro 'Q_ENUM'
             Q_ENUM(DragDropMode)
             ^~~~~~
        

        C:\Qt\5.15.1\mingw81_64\include\QtGui\qvector2d.h:106: warning: optimization attribute on 'constexpr const QVector2D operator*(const QVector2D&, const QVector2D&)' follows definition but the attribute doesn't match [-Wattributes]
        In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qevent.h:56,
                         from C:\Qt\5.15.1\mingw81_64\include/QtGui/qtextlayout.h:49,
                         from C:\Qt\5.15.1\mingw81_64\include/QtGui/qabstracttextdocumentlayout.h:45,
                         from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qplaintextedit.h:51,
                         from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/QPlainTextEdit:1,
                         from ./ui_app.h:20,
                         from ..\..\rotortest\App\app.cpp:2:
        C:\Qt\5.15.1\mingw81_64\include/QtGui/qvector2d.h:106:102: warning: optimization attribute on 'constexpr const QVector2D operator*(const QVector2D&, const QVector2D&)' follows definition but the attribute doesn't match [-Wattributes]
             Q_DECL_CONSTEXPR friend inline const QVector2D operator*(const QVector2D &v1, const QVector2D &v2);
                                                                                                              ^
        

        C:\Qt\5.15.1\mingw81_64\include\QtGui\qbrush.h:50: In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qbrush.h:50,
        In file included from C:\Qt\5.15.1\mingw81_64\include/QtGui/qbrush.h:50,
                         from C:\Qt\5.15.1\mingw81_64\include/QtGui/qpalette.h:46,
                         from C:\Qt\5.15.1\mingw81_64\include/QtWidgets/qwidget.h:48,
                         from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/qmainwindow.h:44,
                         from C:\Qt\5.15.1\mingw81_64\include\QtWidgets/QMainWindow:1,
                         from ..\..\rotortest\App\app.h:4,
                         from ..\..\rotortest\App\app.cpp:1:
        C:\Qt\5.15.1\mingw81_64\include/QtGui/qtransform.h:417:19: note: previous definition of 'QTransform operator-(const QTransform&, qreal)' was here
         inline QTransform operator -(const QTransform &a, qreal n)
                           ^~~~~~~~
        

        And others....

        Is there a way to remove this warnings on this setup above?

        Thank you,

        J Online
        J Online
        J.Hilk
        Moderators
        wrote on 29 Oct 2020, 05:40 last edited by
        #3

        @fem_dev
        could be this bug:
        https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
        MingW 8.4 should have it fixed


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        F 1 Reply Last reply 29 Oct 2020, 16:43
        2
        • J jsulm
          29 Oct 2020, 05:28

          @fem_dev Do you set C++ standard in your pro file?
          Are you sure you really use MingW 8.1 and not another one?

          F Offline
          F Offline
          fem_dev
          wrote on 29 Oct 2020, 16:42 last edited by
          #4

          @jsulm yes! My *.pro file is setting C++ standard.
          In this machine I have just one setup installed: MingW 8.1 that comes with Qt 5.15.1 installer.

          1 Reply Last reply
          0
          • J J.Hilk
            29 Oct 2020, 05:40

            @fem_dev
            could be this bug:
            https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
            MingW 8.4 should have it fixed

            F Offline
            F Offline
            fem_dev
            wrote on 29 Oct 2020, 16:43 last edited by
            #5

            @J-Hilk Is there a way to update my MingW 8.1 to the 8.4 version?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 29 Oct 2020, 17:45 last edited by
              #6

              Simply add '-Wno-attributes' to your compiler flags.

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              1

              6/6

              29 Oct 2020, 17:45

              • Login

              • Login or register to search.
              6 out of 6
              • First post
                6/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved