gcc warning (g++ warning)
Gabriel Dos Reis
gdr@codesourcery.com
Wed Nov 1 00:56:00 GMT 2000
Jimen Ching <jching@flex.com> writes:
[...]
| Yes, the warning came from g++ (not gcc) when compiling a C++ source file.
| I also have "-ansi -pedantic -Wall" on the command line. But I verified,
| the warning does not appear if I take out -pedantic. But still, should
| this warning be generated given that I am compiling C++? Given the
| passage that Gaby qouted, I do not believe the warning was warranted, even
| with -pedantic. Well, maybe if I had exceeded 65536...
The point with C++ is that, it was a deliberate decision (there was a
long discussion about that on comp.std.c++, I don't remember the
subject: field but I do recall Andy Koenig and Pete Beker were
involved) not to impose any minimum limits for compliance. In order
words, the warning is pointless when compiling C++, and probably C99
(I've not checked the wording).
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Gcc
mailing list