Commit a18f802
Fix GCC -Werror=return-type (#55967)
Summary:
Pull Request resolved: #55967
X-link: facebook/yoga#1910
GCC with `-Wall -Werror` emits `-Wreturn-type` for `gridTrackSizeFromTypeAndValue` and
`styleSizeLengthFromTypeAndValue` because it does not suppress the
warning for exhaustive switches over C-style enums (unlike Clang).
Add `fatalWithMessage` after each switch to satisfy `-Werror=return-type`,
matching the existing pattern used in `Style.h` for similar exhaustive
switches.
Changelog: [Internal]
Reviewed By: cortinico
Differential Revision: D95513063
fbshipit-source-id: aab3635b34ff2ca57bf138b92b7378f2608e605d1 parent 3483dfa commit a18f802
1 file changed
Lines changed: 2 additions & 0 deletions
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
| 625 | + | |
625 | 626 | | |
626 | 627 | | |
627 | 628 | | |
| |||
639 | 640 | | |
640 | 641 | | |
641 | 642 | | |
| 643 | + | |
642 | 644 | | |
643 | 645 | | |
644 | 646 | | |
| |||
0 commit comments