Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Windows): Fix cast and control paths errors on windows (facebook#…
…46899) Summary: Windows has a stricter set of rules for C++ files where we treat warning as error, the following files have fixes to correctly cast numbers and fix control path errors. Control Path Error on React-Native-Windows repo: ``` 1>react-native-windows\node_modules\react-native\ReactCommon\react\performance\timeline\PerformanceEntryReporter.h(138,1): warning C4715: 'facebook::react::PerformanceEntryReporter::getBufferRef': not all control paths return a value 1>react-native-windows\node_modules\react-native\ReactCommon\react\performance\timeline\PerformanceEntryReporter.h(154,1): warning C4715: 'facebook::react::PerformanceEntryReporter::getBuffer': not all control paths return a value ``` Apply these fixes will allow us to unfork these files in our repo :) ## Changelog: [GENERAL] [FIXED] - Fix cast and control paths errors on windows Pull Request resolved: facebook#46899 Test Plan: Tested on the RNW repo, these files are already forked with the respective fix Reviewed By: cipolleschi Differential Revision: D64086963 Pulled By: arushikesarwani94 fbshipit-source-id: fdad72dafa1a01c426536fc1b007dd4a83588d93
- Loading branch information