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

Fix OSS compiler warnings #456

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mszabo-wikia
Copy link
Contributor

@mszabo-wikia mszabo-wikia commented Dec 10, 2024

As observed in #449, the OSS build currently produces various compiler warnings, mostly from OSS-specific stubs.

Fix the following warnings:

  • Fix -Wunused-parameter in stub functions by commenting out the relevant parameters.
  • Fix -Wunused-local-typedef by removing unused typedefs.
  • Fix -Wreturn-local-addr in SRHost by returning a reference to a member variable instead.
  • Fix -Wredundant-move by removing redundant std::move() calls when returning a function parameter.

@mszabo-wikia mszabo-wikia force-pushed the fix-compiler-warnings branch 4 times, most recently from f7a6590 to 443a465 Compare December 11, 2024 10:59
As observed in facebook#449, the OSS
build currently produces various compiler warnings, mostly from
OSS-specific stubs.

Fix the following warnings:
* Fix -Wunused-parameter in stub functions by commenting out the
  relevant parameters.
* Fix -Wunused-local-typedef by removing unused typedefs.
* Fix -Wreturn-local-addr in SRHost by returning a reference to a
  member variable instead.
* Fix -Wredundant-move by removing a redundant std::move() call when
  returning a function parameter.
@facebook-github-bot
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants