git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Purpose of "struct object_entry *oe = oe;"?
@ 2010-06-29 12:28 Bruce Stephens
  2010-07-02  1:43 ` Joshua Juran
  2010-07-02  8:48 ` David Aguilar
  0 siblings, 2 replies; 4+ messages in thread
From: Bruce Stephens @ 2010-06-29 12:28 UTC (permalink / raw)
  To: git

Out of curiousity, where did this convention/idiom come from, and what's
it for?

I presume it's to remove a warning ("oe might be used uninitialised") on
a compiler (or something) that's clever enough to attempt such analysis
but too stupid to notice that the supposed initialisation is using
something uninitialised (or perhaps the compiler's deliberately
recognising the convention?).  Is that right, or does it actually do
something more?

I'm mostly surprised that it surprises me.  Is it used commonly in other
projects?  (It appears not to be mentioned in CodingGuidelines; should
it be?)

(First instance in git that I can see is
67affd5173da059ca60aab7896985331acacd9b4, 2006.)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-02  9:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-29 12:28 Purpose of "struct object_entry *oe = oe;"? Bruce Stephens
2010-07-02  1:43 ` Joshua Juran
2010-07-02  8:48 ` David Aguilar
2010-07-02  9:28   ` Bruce Stephens

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).