public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Informing gcc that a function initializes a pointer target
@ 2013-10-11 23:57 Ian Pilcher
  2013-10-12  0:19 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Pilcher @ 2013-10-11 23:57 UTC (permalink / raw)
  To: gcc-help

I've run into a situation where I'm getting a spurious (I think) "may be
used uninitialized" warning.

  https://bugzilla.redhat.com/show_bug.cgi?id=1018422

In this case, the variable is initialized when its address is passed to
another function.

This situation made me wonder if there's some sort of function (or
parameter) attribute that I could use to inform the compiler that the
function does, in fact, initialize the variable.

Thanks!

-- 
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
Sometimes there's nothing left to do but crash and burn...or die trying.
========================================================================

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

end of thread, other threads:[~2013-10-12  3:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-11 23:57 Informing gcc that a function initializes a pointer target Ian Pilcher
2013-10-12  0:19 ` Ian Lance Taylor
2013-10-12  3:23   ` Ian Pilcher

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 read-only IMAP folder(s) and NNTP newsgroup(s).