[Bug fortran/30549] compiler warning in resolve.c: possibly uninitialized use of name
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 22 22:25:00 GMT 2007
------- Comment #2 from burnus at gcc dot gnu dot org 2007-01-22 22:25 -------
> No, that means it is used possiable as null.
> You need to check inside pure_function to see if there is a way that the
> second argument does not get initialized.
There is:
if (e->symtree != NULL
&& e->symtree->n.sym != NULL
&& e->symtree->n.sym->attr.proc == PROC_ST_FUNCTION)
return 1;
One could thus either add a line in pure_function or in "resolve_function" to
set name to null. Or in both. Having it in "resolve_function" means we get rid
of this warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30549
More information about the Gcc-bugs
mailing list