[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2011-05-25 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38037 --- Comment #5 from Nicola Pero nicola at gcc dot gnu.org 2011-05-25 18:54:43 UTC --- Author: nicola Date: Wed May 25 18:54:40 2011 New Revision: 174221 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=174221 Log: In libobjc/: 2011-05-25

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2011-05-25 Thread edwintorok at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38037 Török Edwin edwintorok at gmail dot com changed: What|Removed |Added CC||nicola at gcc

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2011-05-25 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38037 --- Comment #7 from Nicola Pero nicola at gcc dot gnu.org 2011-05-25 20:32:46 UTC --- Apologies. You are right; I committed a fix for libobjc/38307. ;-) Thanks

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
--- 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))

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
--- Comment #2 from edwintorok at gmail dot com 2008-11-06 20:59 --- /* testcase * gcc -Wall -O2 -c foo.c */ char *get(void); int use(const char *); void foo(const char *bar) { char *foobar; if(!bar) foobar = get(); if(use(bar))

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread edwintorok at gmail dot com
--- Comment #3 from edwintorok at gmail dot com 2008-11-06 21:01 --- Same happens if I use int instead of a pointer: /* testcase */ /* gcc -O2 -Wall -c foo.c */ int get(void); int use(int); void foo(int bar) { int foobar; if(!bar) foobar = get();

[Bug c/38037] false uninitialized warnings when using a pointer as a guard

2008-11-06 Thread pinskia at gcc dot gnu dot org
--- Comment #4 from pinskia at gcc dot gnu dot org 2008-11-06 21:11 --- *** This bug has been marked as a duplicate of 36550 *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added