Commit 69df1dc
Fix GCC -Werror=return-type
Summary:
X-link: facebook/yoga#1910
GCC 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.
Differential Revision: D955130631 parent 53cd9ce commit 69df1dc
1 file changed
+2
-0
lines changedLines 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