From: Johannes Sixt <j.sixt@viscovery.net>
To: Joachim Schmitz <jojo@schmitz-digital.de>
Cc: 'Jan Engelhardt' <jengelh@inai.de>,
'Junio C Hamano' <gitster@pobox.com>,
git@vger.kernel.org
Subject: Re: git on HP NonStop
Date: Mon, 20 Aug 2012 12:56:50 +0200 [thread overview]
Message-ID: <503217F2.5070105@viscovery.net> (raw)
In-Reply-To: <000701cd7ebf$af552aa0$0dff7fe0$@schmitz-digital.de>
Am 8/20/2012 12:36, schrieb Joachim Schmitz:
> int var = var;
> char *othervar = othervar;
>
> ...
>
> What is the reason for using that self-init stuff? I don't think it is
> really portable, is it?
It is used to avoid "var may be used uninitialized" warnings for some
compilers. Officially (according to the C standard), it is undefined
behavior. But I've observed considerable resistance by Junio to fix this
properly. Therefore, unless you can show that your compiler generates
unusable code you better live with the "self-initialization" warnings.
-- Hannes
next prev parent reply other threads:[~2012-08-20 10:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <001101cd79f2$f21b3bd0$d651b370$@schmitz-digital.de>
[not found] ` <7vr4r98rfd.fsf@alter.siamese.dyndns.org>
2012-08-14 15:52 ` git on HP NonStop Joachim Schmitz
2012-08-19 16:25 ` Jan Engelhardt
2012-08-20 10:36 ` Joachim Schmitz
2012-08-20 10:56 ` Johannes Sixt [this message]
2012-08-20 11:27 ` Joachim Schmitz
2012-08-20 16:29 ` Junio C Hamano
2012-08-20 20:51 ` Joachim Schmitz
2012-08-21 2:06 ` Junio C Hamano
2012-08-22 16:38 ` Joachim Schmitz
2012-08-23 8:23 ` Andreas Ericsson
2012-08-23 9:23 ` Joachim Schmitz
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=503217F2.5070105@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jengelh@inai.de \
--cc=jojo@schmitz-digital.de \
/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;
as well as URLs for NNTP newsgroup(s).