This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/58488] -Wuninitialized is useless for a variable whose address is later taken
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 22 Sep 2013 15:04:06 +0000
- Subject: [Bug c/58488] -Wuninitialized is useless for a variable whose address is later taken
- Auto-submitted: auto-generated
- References: <bug-58488-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58488
--- Comment #2 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
Note that this has nothing to do with the fact that the uninitialized var is a
pointer:
void test(char);
int main(void) {
char oops;
test(oops);
char *other = &oops;
return !other;
}