10000 gcc: fix various Wnrvo warnings by neheb · Pull Request #1255 · taglib/taglib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gcc: fix various Wnrvo warnings #1255

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

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

gcc: fix various Wnrvo warnings #1255

wants to merge 1 commit into from

Conversation

neheb
Copy link
Contributor
@neheb neheb commented Nov 27, 2024

GCC cannot elide copies with multiple returns.

GCC cannot elide copies with multiple returns.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
@scotchi
Copy link
Member
scotchi commented Nov 27, 2024

I feel like this needs significantly more explanation. This makes the code less readable for optimizations that don't obviously have any benefit? The existence of a compiler flag that reports a block of code isn't ipso facto a reason to make code worse.

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

Successfully merging this pull request may close these issues.

2 participants
0