mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 00:28:20 +00:00
[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:
parent
a8521b821e
commit
bf9023d6f8
@ -66,7 +66,7 @@ add_compile_options(
|
|||||||
"-Wextra"
|
"-Wextra"
|
||||||
"-Wno-sign-compare"
|
"-Wno-sign-compare"
|
||||||
"-Wno-unused-parameter"
|
"-Wno-unused-parameter"
|
||||||
"-Wstrict-prototypes"
|
"$<$<COMPILE_LANGUAGE:C>:-Wstrict-prototypes>"
|
||||||
"$<$<C_COMPILER_ID:GNU>:-Wimplicit-fallthrough=2>"
|
"$<$<C_COMPILER_ID:GNU>:-Wimplicit-fallthrough=2>"
|
||||||
"-Werror"
|
"-Werror"
|
||||||
"-Wfatal-errors"
|
"-Wfatal-errors"
|
||||||
|
Loading…
Reference in New Issue
Block a user