too many warnings

Kris Demuynck demuynck@ruca.ua.ac.be
Thu Oct 29 01:44:00 GMT 1998


Hi,

I'd like you to try and compile the next bit of code using g++:

----------------------------------
int
main (int argc, char **argv)
{
  unsigned a;

  a=4294967295;
}
-----------------------------------

You will get the following warning:

-------------------------------------------------------------------
bug.cpp: In function `int main(int, char **)':
bug.cpp:6: warning: decimal integer constant is so large that it is
unsigned
-------------------------------------------------------------------

I'm sorry but I don't think that a warning should be issued in this case.
Could this be resolved in one of the next versions?

If you think that the warning should stay, please write me at:

demuynck@ruca.ua.ac.be

Kris Demuynck.




More information about the Gcc-bugs mailing list