Mail Archives: djgpp/1997/10/30/04:45:31
On Wed, 29 Oct 1997, Peter Palotas wrote:
> If this is so, why doesn't the compiler generate an error for declaring
> main() as 'void main()'?
The GCC on-line manual explains this:
Some users try to use `-pedantic' to check programs for strict ANSI
C conformance. They soon find that it does not do quite what they
want: it finds some non-ANSI practices, but not all--only those
for which ANSI C *requires* a diagnostic.
A feature to report any failure to conform to ANSI C might be
useful in some instances, but would require considerable
additional work and would be quite different from `-pedantic'.
- Raw text -