This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60279] New: Incorrect column number for -Wuninitialized in return statement
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Feb 2014 01:07:39 +0000
- Subject: [Bug c/60279] New: Incorrect column number for -Wuninitialized in return statement
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60279
Bug ID: 60279
Summary: Incorrect column number for -Wuninitialized in return
statement
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: chengniansun at gmail dot com
I found the column number in the return statement of -Wuninitialized is not
correct.
$: cat s.c
int g(char *);
int f(void) {
char *s;
return g(s);
}
$: gcc-trunk -Wuninitialized -c s.c
s.c: In function âfâ:
s.c:4:3: warning: âsâ is used uninitialized in this function [-Wuninitialized]
return g(s);
^
$: gcc-trunk --version
gcc-trunk (GCC) 4.9.0 20140217 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$: