[python][patch] And range method to type

Andreas Schwab schwab@linux-m68k.org
Wed Dec 9 11:41:00 GMT 2009


Eli Zaretskii <eliz@gnu.org> writes:

>> > I make the cvs-head get:
>> 
>> > cc1: warnings being treated as errors
>> > ../../src/gdb/python/py-type.c: In function 'typy_range':
>> > ../../src/gdb/python/py-type.c:285: warning: 'high' may be used
>> > uninitialized in this function
>> > ../../src/gdb/python/py-type.c:285: warning: 'low' may be used
>> > uninitialized in this function
>> 
>> I do not see this on my build at all.
>
> Are you compiling without optimizations, per chance?  AFAIK, this
> warning is only produced in optimized compilations.

Recent gcc versions are also much better at tracking values.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gdb-patches mailing list