[Bug middle-end/33086] warn for read-only uninitialized variables passed as arguments

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Aug 16 14:58:00 GMT 2007



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-08-16 14:58 -------


void use(const int *a)
{
  int *b = (int*)a;
    b[0] = 5;
}
void foo(void)
{
  int i;
  use(&i);
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33086



More information about the Gcc-bugs mailing list