Search code examples
cgccqt-creatorunused-variables

Removing Unused parameters warning in QtCreator


I added this to my .pro file but I stil get warnings :

QMAKE_CXXFLAGS_WARN_OFF = -Wunused-parameter

Solution

  • Try

    ... = -Wno-unused-parameter
    

    Please see here for details.

    Or try

    QMAKE_CXXFLAGS_WARN_OFF -= -Wunused-parameter
    

    Note the - in front of the =.