[Bug c/38037] false uninitialized warnings when using a pointer as a guard
edwintorok at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 6 21:00:00 GMT 2008
------- Comment #1 from edwintorok at gmail dot com 2008-11-06 20:58 -------
/* testcase
gcc -O2 -Wall -c foo.c */
char *get(void);
int use(const char *);
void foo(const char *bar)
{
char *foobar;
if(!bar)
foobar = get();
if(use(bar))
return;
if(!bar)
free(foobar);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38037
More information about the Gcc-bugs
mailing list