public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/7258: The message "variable might be used uninitialised" does not tell the location
@ 2002-12-03 14:59 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-03 14:59 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, schnetter

Synopsis: The message "variable might be used uninitialised" does not tell the location

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Dec  3 14:59:45 2002
State-Changed-Why:
    Confirmed. Use the following, as an example:
    -----------------------
    void g ();
    void f() {
      int i;
      if (i)
        g();
    };
    ----------------------
    The message is
    tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -W -Wall -Wuninitialized -O -c x.c
    x.c: In function `f':
    x.c:4: warning: `i' might be used uninitialized in this function

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7258


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

* Re: c/7258: The message "variable might be used uninitialised" does not tell the location
@ 2002-12-03 15:06 Wolfgang Bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bangerth @ 2002-12-03 15:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c/7258; it has been noted by GNATS.

From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org, <gcc-bugs@gcc.gnu.org>
Cc:  
Subject: Re: c/7258: The message "variable might be used uninitialised" does
 not tell the location
Date: Tue, 3 Dec 2002 17:02:06 -0600 (CST)

 Regarding my confirmation message for this report:
 
 Too bad I deleted the line between functions g() and f() upon pasting, but 
 not updating the compiler output. With the given code, the warning is for
 line _3_, which is the declaration, not the use of 'i'.
 
 W.
 
 -------------------------------------------------------------------------
 Wolfgang Bangerth              email:           bangerth@ticam.utexas.edu
                                www: http://www.ticam.utexas.edu/~bangerth
 
 


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

end of thread, other threads:[~2002-12-03 23:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-03 14:59 c/7258: The message "variable might be used uninitialised" does not tell the location bangerth
2002-12-03 15:06 Wolfgang Bangerth

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