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]>
>>>>> "Pedro" == Pedro Alves <[email protected]> writes:

Pedro> Last I tried, I couldn't find a way to suppress the warning from
Pedro> gdb::optional.  The warning triggers in code that belongs to
Pedro> T in gdb::optional<T>.

I was hoping we could get a gcc extension for this -- say, some
attribute we could apply somewhere to suppress the warning.

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.