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

-Wno-error=unused-but-set-variable requires GCC >= 4.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.3.0 Beta1
    • WebKit
    • None
    • OSX 10.6.8, XCode 3.2, MacOSX10.6.sdk, gcc 4.2.1

    Description

      In qtwebkit/Source/ThirdParty/leveldb/Target.pri

      gcc {
      QMAKE_CXXFLAGS_WARN_ON += -Wno-error=unused-but-set-variable
      QMAKE_CXXFLAGS += -Wno-error=unused-but-set-variable
      }

      -Wno-error=unused-but-set-variable was introduced in gcc 4.6.
      Trying to use in older versions causes a compile error:

      cc1plus: error: -Werror=unused-but-set-variable: No option -Wunused-but-set-variable

      This is in webkit, but the Target.pri file appears to be part of the Qt build system used to build webkit for qtwebkit.

      Not sure if you want to support gcc pre 4.6, but I wanted to report so it is known.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            cyrush Cyrus Harrison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes