From d3d49727ee6de7d837c38cb9bf4a906730e4cce5 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Wed, 16 Apr 2025 20:35:23 +0200 Subject: [PATCH] Suppress warnings from compilation of external ixwebsocket dependency Clang warns about declared but unused parameters somewhere in the guts of IXWebSocket (internal code, not its headers). We are not interested in this or similar warnings since we do not control this code, so suppress all warnings for this target. --- src/cluster/websocket/auxil/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cluster/websocket/auxil/CMakeLists.txt b/src/cluster/websocket/auxil/CMakeLists.txt index 5131dbf0ac..0fc5b821f7 100644 --- a/src/cluster/websocket/auxil/CMakeLists.txt +++ b/src/cluster/websocket/auxil/CMakeLists.txt @@ -5,3 +5,7 @@ set(USE_TLS ON) set(USE_OPEN_SSL ON) add_subdirectory(IXWebSocket) + +# We are not interested in any warnings from `IXWebSocket`'s compilation +# itself, suppress them. +target_compile_options(ixwebsocket PRIVATE "-w")