Re: [PATCH 2/2] Fix variable initialization in insert_packed_refs().
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jan 15, 2010, 07:34 UTC
- Message-ID
- <4B501A9D.6060703@viscovery.net>
- In-Reply-To
- <201001150029.01486.richard@nod.at>
Richard Weinberger schrieb:
> - int cmp = cmp, len; > + int cmp, len;
If you look around in the code, you'll find more *cough* initializations *cough* like this. They are written this way for a reason: they avoid unwarranted compiler warnings "'foo' may be used uninitialized". Are you saying that this warning is not triggered anymore after your change?
-- Hannes