Re: [PATCH] submodule.c: Squelch a "use before assignment" warning
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 22, 2009, 02:59 UTC
- Message-ID
- <7vws1jl0xp.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <c5plt6-5me.ln1@burns.bruehl.pontohonk.de>
Christoph Bartoschek <bartoschek@gmx.de> writes:
> Why is the compiler not complaining about the fake initalization? For > initialization a value is used that is not initialized.
That is a fairly well established idiom to tell gcc "you may mistakenly think it isn't, but this is used".