diff --git a/moonlight-common-c/moonlight-common-c.pro b/moonlight-common-c/moonlight-common-c.pro index 4b0d45c6..1d088378 100644 --- a/moonlight-common-c/moonlight-common-c.pro +++ b/moonlight-common-c/moonlight-common-c.pro @@ -12,9 +12,6 @@ TEMPLATE = lib # Build a static library CONFIG += staticlib -# Disable warnings -CONFIG += warn_off - # Include global qmake defs include(../globaldefs.pri) @@ -92,3 +89,8 @@ CONFIG(debug, debug|release) { *-g++ { QMAKE_CFLAGS += -std=gnu99 } + +# Disable unused parameter warnings on GCC and Clang +*-g++|*-clang* { + QMAKE_CFLAGS_WARN_ON += -Wno-unused-parameter +}