No success getting warnings to disable using clang 64 bit on Mac



  • I have been trying several different methods to disable specific warnings with no luck. This seems to be the main way everyone says it should work. But nothing:
    @QMAKE_CXXFLAGS += -Wno-unused-parameter@

    This, however does work:
    @CONFIG += WARN_OFF@

    But I would prefer not to disable everything. Any ideas?


  • Moderators

    To get rid of "unused parameter" warning, you can actually add this in offending methods in your code:
    @
    Q_UNUSED(unsedVariableName);
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.