Skip to content

Wrapping labels containing local variable definitions to its own scope

David C. Manuelda requested to merge StormByte/thunar:master into master

It is forbidden to declare local variables in a switch label without their own scope and despite GCC seems to just ignore it, CLang makes it a compile failure so there are 2 solutions:

a) (Preferred) wrap all the case labels that contain local variable definitions into its own scope b) Move all local variable definitions from inside label to outside switch statement

Merge request reports