Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment out unreferenced formal parameter #36853

Closed
wants to merge 3 commits into from

Conversation

TatianaKapos
Copy link
Contributor

Summary:

Recent windows integration brought in a change where a unreferenced formal parameter was introduced in TurboModule.h. Windows treats with warning as an error, this change comments out the formal parameter name to get rid of the error/warning.

Changelog:

[GENERAL] [FIXED] - Comment out unreferenced formal parameter

Test Plan:

Passed Windows testcases

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

analysis-bot commented Apr 7, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,604,520 -93
android hermes armeabi-v7a 7,918,570 +47
android hermes x86 9,090,516 +35
android hermes x86_64 8,945,626 +61
android jsc arm64-v8a 9,173,833 +0
android jsc armeabi-v7a 8,365,493 +0
android jsc x86 9,231,488 +0
android jsc x86_64 9,490,181 +0

Base commit: a6690bf
Branch: main

@NickGerleman
Copy link
Contributor

NickGerleman commented Apr 8, 2023

C++ 17 added "[[maybe_unused]]" which I think is now the preferred way to do this. https://en.cppreference.com/w/cpp/language/attributes/maybe_unused

@TatianaKapos
Copy link
Contributor Author

@NickGerleman switched to use maybe_unused!

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 14, 2023
@facebook-github-bot
Copy link
Contributor

@philIip merged this pull request in 3c0ad81.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
Summary:
Recent windows integration brought in a change where a unreferenced formal parameter was introduced in TurboModule.h. Windows treats with warning as an error, this change comments out the formal parameter name to get rid of the error/warning.

## Changelog:

[GENERAL] [FIXED] - Comment out unreferenced formal parameter

Pull Request resolved: facebook#36853

Test Plan: Passed Windows testcases

Reviewed By: javache

Differential Revision: D45007332

Pulled By: philIip

fbshipit-source-id: 2e8128549d628a8be6bcd76c1fa473d0bc27649b
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
Recent windows integration brought in a change where a unreferenced formal parameter was introduced in TurboModule.h. Windows treats with warning as an error, this change comments out the formal parameter name to get rid of the error/warning.

## Changelog:

[GENERAL] [FIXED] - Comment out unreferenced formal parameter

Pull Request resolved: facebook#36853

Test Plan: Passed Windows testcases

Reviewed By: javache

Differential Revision: D45007332

Pulled By: philIip

fbshipit-source-id: 2e8128549d628a8be6bcd76c1fa473d0bc27649b
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