-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
i am using -Wconditional-uninitialized flag and then i am getting some errrors from the library. #15865
Comments
Hello @ananta-code, Can you please provide complete steps to reproduce the above error. Thanks ! |
@sgowroji I have a bazel build and i am using clang compiler aruguments to build c++ app. build --stamp and i am building app with these compiler option and then getting error from the library. Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging Since i am using features=external_include_paths i am not expecting this error from the library. and in my BUILD i am loading these libraries. |
Potentially fix bazelbuild#15762 and bazelbuild#15865 (if they depend on windows). Linked to 08936ae Closes bazelbuild#16694. PiperOrigin-RevId: 505084880 Change-Id: Ie4dc08a0e93c76419b6164bacccadac32a7c7b2f
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post |
i am using -Wconditional-uninitialized flag and then i am getting some errrors from the library.
external/com_google_protobuf/src/google/protobuf/arena.cc:398:12: error: variable 'arena' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
return arena->AllocateAlignedWithCleanup(n, alloc_policy_.get());
^~~~~
external/com_google_protobuf/src/google/protobuf/arena.cc:395:21: note: initialize the variable 'arena' to silence this warning
SerialArena* arena;
^
= nullptr
1 error generated.
i want to filter out this error since it is coming from the library and i am using Bazel 5.0 and feature : build --features=external_include_paths but still i am seeing the above error from the library.
Could you please help me on this?
Originally posted by @ananta-code in #12009 (comment)
The text was updated successfully, but these errors were encountered: