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

qtdeclarative fails to compile on GCC 7 [-Werror=expansion-to-defined]

    XMLWordPrintable

    Details

      Description

      QtDeclarative fails to compile with GCC 7.0.1 (20170225 (experimental)). It warns about cpp macros expanding to defined(). Subset of errors:

      /home/marc/Qt/qt5/qtdeclarative/src/3rdparty/masm/wtf/StdLibExtras.h:161:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
       #if COMPILER(GCC)
       ^~~~~~~~~~~~~~~~
      /home/marc/Qt/qt5/qtdeclarative/src/qml/memory/qv4mm.cpp:80:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
       #if OS(QNX)
       ^~~~~~~~~~
      /home/marc/Qt/qt5/qtdeclarative/src/qml/memory/qv4mm.cpp:84:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
       #if USE(PTHREADS) && HAVE(PTHREAD_NP_H)
       ^~~~~~~~~~~~~~~~
      /home/marc/Qt/qt5/qtdeclarative/src/qml/memory/qv4mm.cpp:84:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
       #if USE(PTHREADS) && HAVE(PTHREAD_NP_H)
       ^~~~~~~~~~~~~~~~~
      

      Probably easiest to disable the warning.

        Attachments

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

          Activity

            People

            Assignee:
            mmutz Marc Mutz
            Reporter:
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes