Commit d05da38
Fix missing enum values in switch statements (#54373)
Summary:
Pull Request resolved: #54373
`-Wswitch-enum` was introduced in 2024 and is beneficial because it will err when switch statement is missing a case for an enum, even with `default:` present. This helps alert developers when they add an enum value of all the switch statements that need updating.
These diffs are to help progress the codebase so that we can enable `-Wswitch-enum` by default in `fbobjc`
## Changelog:
[Internal] - Make enum exhaustive
Reviewed By: cipolleschi
Differential Revision: D85956869
fbshipit-source-id: 2833822e1f82e77909229c566798547e1cb7f0841 parent 9287786 commit d05da38
1 file changed
Lines changed: 3 additions & 0 deletions
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
730 | 733 | | |
731 | 734 | | |
732 | 735 | | |
| |||
0 commit comments