From db4739b82d12bc526fcd975a7ebae8b007b5369f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 5 May 2024 18:52:21 -0500 Subject: [PATCH] Remove warn_off configuration for moonlight-common-c subproject We can just turn off unused parameter warnings instead of all warnings. --- moonlight-common-c/moonlight-common-c.pro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 +}