This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python][patch] And range method to type


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]