]> git.mdlowis.com Git - proto/labwc.git/commit
Add -Wshadow + reformat switch cases
authortokyo4j <hrak1529@gmail.com>
Fri, 23 May 2025 04:09:15 +0000 (13:09 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Fri, 23 May 2025 20:32:17 +0000 (21:32 +0100)
commit68bf55d72481fa4883a884f9cf9d617bb6615658
tree1c1c60fc4632c5564910703568cb81185f76e1cc
parente19f0fc267315042259774e8f73de067bdce4807
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.
meson.build
src/action.c
src/workspaces.c
src/xdg.c