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

QMAKE_CXXFLAGS_WARN_ON should contain -W for mingw

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 4.8.3
    • 4.8.2
    • Build tools: Other
    • None
    • Windows 7, Mingw (GCC 4.6)

      In order to turn warnings on in mingw, one should specify -W -Wall, but QMAKE_CXXFLAGS_WARN_ON specifies only -Wall. As a result "CONFIG += warn_on" doesn't display some warnings like unused variables in functions.

      Please add -W (or -Wextra) to QMAKE_CXXFLAGS_WARN_ON on win32-g++ platform.

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

            buddenha Oswald Buddenhagen
            dmitry64 Dmitry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes