Re: gcc warning with "some variable may be used uninitialized in this function [-Wmaybe-uninitialized]" when building under msys
Tom Tromey <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "Simon" == Simon Marchi <[email protected]> writes: Simon> I also see this from time to time. I think it is a false positive, Simon> but I may be wrong. Do you see a code path that could actually be Simon> problematic? I think this is just that gcc doesn't know how to deal with gdb::optional, and we aren't willing to add an initializer that would slow down the generated code. IIUC this is a problem with std::optional as well. Tom