mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[client] enable useful extra warnings
-Wno-sign-compare is used to suppress warnings related to comparing signed values with unsigned ones. It's too pedantic. -Wunused-parameter is also too pedantic, especially since all parameters have to be named in C. Otherwise, -Wextra lets us catch bugs, such as x < 0 for unsigned x. On gcc, we pass -Wimplicit-fallthrough=2 so it will recognize our fall through comment.
This commit is contained in:
parent
5538a31f6b
commit
0495f5de26
@ -41,6 +41,10 @@ add_feature_info(ENABLE_WAYLAND ENABLE_WAYLAND "Wayland support.")
|
|||||||
|
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
"-Wall"
|
"-Wall"
|
||||||
|
"-Wextra"
|
||||||
|
"-Wno-sign-compare"
|
||||||
|
"-Wno-unused-parameter"
|
||||||
|
"$<$<C_COMPILER_ID:GNU>:-Wimplicit-fallthrough=2>"
|
||||||
"-Werror"
|
"-Werror"
|
||||||
"-Wfatal-errors"
|
"-Wfatal-errors"
|
||||||
"-ffast-math"
|
"-ffast-math"
|
||||||
|
Loading…
Reference in New Issue
Block a user