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

Two compile-time warnings treated as errors during build

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.1
    • 5.5.0
    • Build System, QPA: Windows
    • None
    • Windows 8 x64, Visual Studio 2013
    • 50f064f788c6a570ab01909f06a7fe629aa4a621

    Description

      I'm trying to compile my own, "lightweight" version of Qt - just Widgets GUI, no Webkit/QML/ICU/etc.

      configure string

      configure -developer-build -opensource -confirm-license -platform win32-msvc2012 -no-warnings-are-errors -no-opengl -no-icu -nomake examples -nomake tests -skip qtwebkit -skip qtwebkit-examples -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtdeclarative -skip qtquick1 -skip qtquickcontrols -skip qtscript

      After than i just run nmake, as configure suggests.

      Compilation errors

      .\qwindowswindow.cpp(2271) : error C2220: warning treated as error - no 'object' file generated
      .\qwindowswindow.cpp(2271) : warning C4100: 'err' : unreferenced formal parameter
      .\qwindowsnativeinterface.cpp(136) : error C2220: warning treated as error - no 'object' file generated
      .\qwindowsnativeinterface.cpp(136) : warning C4100: 'resource' : unreferenced formal parameter

      When i add two Q_UNUSED() for function parameters, compilation finished fine.

      P.S. Of course i can just use -no-warnings-are-errors option. But i want to make world better

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            eraxillan Alexander Kamyshnikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes