This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/58488] -Wuninitialized is useless for a variable whose address is later taken


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;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]