Skip to content

Remove unused-variable in ../xplat/js/react-native-github/packages/react-native/React/CxxLogUtils/RCTDefaultCxxLogFunction.mm +2#48105

Closed
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D66777665
Closed

Remove unused-variable in ../xplat/js/react-native-github/packages/react-native/React/CxxLogUtils/RCTDefaultCxxLogFunction.mm +2#48105
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D66777665

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Dec 4, 2024

Summary:
LLVM-15 has a warning -Wunused-variable which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance.

This diff either (a) removes an unused variable and, possibly, it's associated code or (b) qualifies the variable with [[maybe_unused]].

  • If you approve of this diff, please use the "Accept & Ship" button :-)

Changelog: [Internal]

Reviewed By: palmje

Differential Revision: D66777665

…act-native/React/CxxLogUtils/RCTDefaultCxxLogFunction.mm +2

Summary:
LLVM-15 has a warning `-Wunused-variable` which we treat as an error because it's so often diagnostic of a code issue. Unused variables can compromise readability or, worse, performance.

This diff either (a) removes an unused variable and, possibly, it's associated code or (b) qualifies the variable with `[[maybe_unused]]`.

 - If you approve of this diff, please use the "Accept & Ship" button :-)

Changelog: [Internal]

Reviewed By: palmje

Differential Revision: D66777665
@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: Facebook Partner: Facebook Partner labels Dec 4, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D66777665

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in e7b9d70.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @r-barnes in e7b9d70

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D66777665 branch December 6, 2024 11:28
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. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants