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

Code that uses Qt 5 cannot be compiled with -pedantic-errors due to non-standard C++ code in headers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.2.0
    • 5.1.1
    • Widgets: Layout
    • None
    • gcc, clang
    • aef44c7970457cc2b673429f8e632e4ac2ee3510

    Description

      QSizePolicy and QPalette classes both contain an anonymous union with anonymous struct inside, which is not standard C++. Hence, any code that directly or indirectly includes these headers cannot be compiled with -pedantic-errors. That effectively means that no code that uses QtWidgets can be compiled with -pedantic-errors.

      Attachments

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

        Activity

          People

            smd Jan Arve
            violetgiraffe Alex
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes