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-uninitializedwarnings inindirect_ptr(...):