This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
warning: operation on 'zero' may be undefined
- From: Mathieu Malaterre <mmalater at nycap dot rr dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 30 Sep 2004 22:57:12 -0400
- Subject: warning: operation on 'zero' may be undefined
Hello,
I am trying gcc4, and turning -Wall reveal a strange warning:
int main()
{
int zero = 125;
zero = (++zero)%3;
}
g++ -Wall foo.cxx
foo.cxx: In function `int main()':
foo.cxx:4: warning: operation on 'zero' may be undefined
What does this mean ?
Thanks
Mathieu
$ g++ --version
g++ (GCC) 4.0.0 20040919 (experimental)