-
Notifications
You must be signed in to change notification settings - Fork 15.5k
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
Rename shadowed variables #13037
Comments
Thanks for reporting this issue! I was able to successfully reproduce it and I see errors with shadowed variables. For future record, here is an example of the logs:
|
I'm sorry, but we don't support compiling with this warning enabled. The best thing you can do here is to modify port_def.inc. Feel free to send a PR |
OK |
Renaming existing violations won't stop backsliding in the future, I would strongly prefer a PR that suppresses the warnings. |
OK, I see. |
Closes protocolbuffers#13037 Closes protocolbuffers#13059 COPYBARA_INTEGRATE_REVIEW=protocolbuffers#13059 from 4kangjc:main 71b2fc5 PiperOrigin-RevId: 540886449
started #13088 to cherry pick this back to 23.x. We won't spin a release specifically for this, but it will be picked up in the next 23.x point release |
OK, I see. |
Don't worry, we will spin a point release for #13075 once it lands, so I don't think you have long to wait |
What version of protobuf and what language are you using?
Version: main
Language: C++
What operating system (Linux, Windows, ...) and version?
MacOS
What runtime / compiler are you using (e.g., python version or gcc version)
What did you expect to see
Shadowed variables can cause readability issues. Ensure a shadowed
variable isn't used in header files which may be used in a dependent
project that explicitly disables them.
bazel build --copt='-Wshadow-all' :protoc :protobuf
executed successfully.The text was updated successfully, but these errors were encountered: