You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
)
Summary:
When integrating react-native into react-native-windows, we got the following build warning (which we treat as an error) when building ReactCommon: `C4715 not all control paths return a value`
This PR adds defaults to the switches to make sure every path returns a value.
See microsoft/react-native-windows#13516
## Changelog:
[GENERAL] [FIXED] Fix "C4715 not all control paths return a value" warning in MSVC when building ReactCommon
Pull Request resolved: #45827
Test Plan: The switches are checking enums this code should never be hit unless new enum values are added.
Reviewed By: robhogan
Differential Revision: D61103286
Pulled By: NickGerleman
fbshipit-source-id: 2028cb60e0b438b9ac17a828f5e1b690052a0bec
Problem Description
Getting
C4715 not all control paths return a value
warnings turning into errors due to new switches with enums that don't have a default return value.Link to the integration where the error originated
#13508
Link to commit
facebook/react-native@404f323
facebook/react-native@a8a76f9
Forked files
Upstream PR
facebook/react-native#45827
Build Configuration
None
The text was updated successfully, but these errors were encountered: