-
Notifications
You must be signed in to change notification settings - Fork 37.8k
prevector: Suppress two -Wmaybe-uninitialized (gcc) warnings in indirect_ptr(...) #13902
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
prevector: Suppress two -Wmaybe-uninitialized (gcc) warnings in indirect_ptr(...) #13902
Conversation
6200d22
to
6e523c9
Compare
Related change from @TheBlueMatt in c73b8be. Ping @sipa who wrote the original prevector code :-) |
What version of gcc are you using? I think this might be related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750 which was fixed in GCC 5. |
@Empact I'm using vanilla gcc 7.3.0 under Ubuntu 18.04.1 LTS:
Nothing fancy – as vanilla as it gets :-) |
I strongly dislike this solution, |
@laanwj Is it a real issue? I thought it was a false positive |
I'm not a fan either, better to fix, if an issue exists, and take it up with the compiler if it's a false positive. Does the issue exist with GCC 8.2? |
Possible cause: only the default constructor explicitly initializes |
@practicalswift maybe see if #14028 fixes the warning? |
Suppress two
-Wmaybe-uninitialized
warnings inindirect_ptr(...)
: