public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Ian Pilcher <arequipeno@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Informing gcc that a function initializes a pointer target
Date: Fri, 11 Oct 2013 23:57:00 -0000	[thread overview]
Message-ID: <5258905F.4090903@gmail.com> (raw)

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

             reply	other threads:[~2013-10-11 23:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11 23:57 Ian Pilcher [this message]
2013-10-12  0:19 ` Ian Lance Taylor
2013-10-12  3:23   ` Ian Pilcher

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=5258905F.4090903@gmail.com \
    --to=arequipeno@gmail.com \
    --cc=gcc-help@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).