[client] cmake: pass -Wstrict-prototypes for C files only

This avoids the following warning in C++ code:

    cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is
    valid for C/ObjC but not for C++
This commit is contained in:
Quantum 2022-05-28 14:46:22 -04:00 committed by Geoffrey McRae
parent a8521b821e
commit bf9023d6f8

View File

@ -66,7 +66,7 @@ add_compile_options(
"-Wextra"
"-Wno-sign-compare"
"-Wno-unused-parameter"
"-Wstrict-prototypes"
"$<$<COMPILE_LANGUAGE:C>:-Wstrict-prototypes>"
"$<$<C_COMPILER_ID:GNU>:-Wimplicit-fallthrough=2>"
"-Werror"
"-Wfatal-errors"