mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
Add -Wshadow + reformat switch cases
Adding -Wshadow will prevent unintentional variable overrides. Also, wrapping switch cases with declarations with braces will make our logic more robust by limiting lifetimes of variables.
This commit is contained in:
parent
e19f0fc267
commit
68bf55d724
4 changed files with 91 additions and 94 deletions
|
|
@ -34,6 +34,7 @@ add_project_arguments(cc.get_supported_arguments([
|
|||
'-Wmissing-prototypes',
|
||||
'-Walloca',
|
||||
'-Wunused-macros',
|
||||
'-Wshadow',
|
||||
|
||||
'-Wno-unused-parameter',
|
||||
'-Wno-expansion-to-defined',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue