From: Junio C Hamano <gitster@pobox.com>
To: Christoph Bartoschek <bartoschek@gmx.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] submodule.c: Squelch a "use before assignment" warning
Date: Sat, 21 Nov 2009 18:59:14 -0800 [thread overview]
Message-ID: <7vws1jl0xp.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <c5plt6-5me.ln1@burns.bruehl.pontohonk.de> (Christoph Bartoschek's message of "Sat\, 21 Nov 2009 19\:46\:36 +0100")
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".
next prev parent reply other threads:[~2009-11-22 2:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-20 1:33 [PATCH] submodule.c: Squelch a "use before assignment" warning David Aguilar
2009-11-20 8:05 ` Junio C Hamano
2009-11-20 11:33 ` David Aguilar
2009-11-21 18:46 ` Christoph Bartoschek
2009-11-22 2:59 ` Junio C Hamano [this message]
2009-11-22 3:32 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vws1jl0xp.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=bartoschek@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox