Fix uninitialised variable warning

Nathan Sidwell nathan@codesourcery.com
Sun Apr 13 11:05:00 GMT 2003


Geoff Keating wrote:

>>Btw, out of curiosity, what's the difference between initializing with 
>>-1 vs 0?
> 
> 
> I picked -1 because I thought it would be better if the checksum was
> unlikely to match if it wasn't ever initialised.
I don't think it is used uninitialized, no matter how
screwed the counts file, because there's an
additional check that function_name_buffer must be non-null. (But
of course, your patch is fins as it stops the warning.)

nathan

-- 
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
          The voices in my head said this was stupid too
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org




More information about the Gcc-patches mailing list