From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10171 invoked by alias); 3 Dec 2002 22:59:46 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10152 invoked by uid 61); 3 Dec 2002 22:59:45 -0000 Date: Tue, 03 Dec 2002 14:59:00 -0000 Message-ID: <20021203225945.10151.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, schnetter@uni-tuebingen.de From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, schnetter@uni-tuebingen.de, gcc-gnats@gcc.gnu.org Subject: Re: c/7258: The message "variable might be used uninitialised" does not tell the location X-SW-Source: 2002-12/txt/msg00179.txt.bz2 List-Id: 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