Skip to content

Fix various c++ warnings#31399

Closed
acoates-ms wants to merge 1 commit into
facebook:masterfrom
acoates-ms:warnings
Closed

Fix various c++ warnings#31399
acoates-ms wants to merge 1 commit into
facebook:masterfrom
acoates-ms:warnings

Conversation

@acoates-ms
Copy link
Copy Markdown
Contributor

@acoates-ms acoates-ms commented Apr 21, 2021

Summary

react-native-windows runs with a more strict set of warnings as errors. This fixes a bunch of warnings being hit while compiling core react-native code as part of react-native-windows. In particular warnings about mismatched signed/unsigned comparisons, lossy conversions, and variable names that conflict with names in outer scopes (yoga has a global for leading and trailing that conflicts with some local variable names)

Changelog

[Internal] [Fixed] - Fix various C++ warnings

Test Plan

I've run these changes in react-native-windows. -- Shouldn't have any functionality difference.

@facebook-github-bot facebook-github-bot added p: Microsoft Partner: Microsoft Partner CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Apr 21, 2021
@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Apr 21, 2021

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,855,108 +897
android hermes armeabi-v7a 8,375,477 -214
android hermes x86 9,310,979 -248
android hermes x86_64 9,254,165 +77
android jsc arm64-v8a 10,586,055 +936
android jsc armeabi-v7a 10,089,531 -176
android jsc x86 10,603,420 -208
android jsc x86_64 11,186,876 +108

Base commit: ca8a755

Comment thread ReactCommon/react/renderer/core/ShadowNode.cpp
@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 2c34946

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rozele has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@rozele merged this pull request in 4d87d8c.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label May 12, 2021
@acoates-ms acoates-ms deleted the warnings branch September 2, 2022 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Microsoft Partner: Microsoft Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants