mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-01 20:13:39 +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
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue