From bf9023d6f84b1b1d18a0068b82a54e158888297c Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 28 May 2022 14:46:22 -0400 Subject: [PATCH] [client] cmake: pass -Wstrict-prototypes for C files only MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids the following warning in C++ code: cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ --- client/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 13236c7f..836f8146 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -66,7 +66,7 @@ add_compile_options( "-Wextra" "-Wno-sign-compare" "-Wno-unused-parameter" - "-Wstrict-prototypes" + "$<$:-Wstrict-prototypes>" "$<$:-Wimplicit-fallthrough=2>" "-Werror" "-Wfatal-errors"