From fdf405a591eb16c00a4665e7dc56e6a9f5e2aa91 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Mon, 5 Feb 2024 16:50:27 -0500 Subject: [PATCH] Suppress unused variable warnings for PERFTRACING_DISABLE CMake vars FEATURE_PERFTRACING_DISABLE_* can sometimes throw unused variable cmake errors, so suppress unused variable warnings entirely. We already use this suppression in gen-buildsys (used by CoreCLR but not Mono). --- src/mono/mono.proj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mono/mono.proj b/src/mono/mono.proj index 3b0ade6bd89cc..64cd3668159a6 100644 --- a/src/mono/mono.proj +++ b/src/mono/mono.proj @@ -584,6 +584,7 @@ <_MonoCMakeArgs Include="-DFEATURE_PERFTRACING_DISABLE_PERFTRACING_LISTEN_PORTS=1"/> <_MonoCMakeArgs Include="-DFEATURE_PERFTRACING_DISABLE_DEFAULT_LISTEN_PORT=1"/> <_MonoCMakeArgs Include="-DFEATURE_PERFTRACING_DISABLE_CONNECT_PORTS=1" /> + <_MonoCMakeArgs Include="--no-warn-unused-cli" />