https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101446

--- Comment #3 from İsmail Dönmez <ismail at i10z dot com> ---
(In reply to Richard Biener from comment #2)
> -Wpedantic is the same as -pedantic and that affects correctness of programs.
> 
> @item -Wpedantic
> @itemx -pedantic
> @opindex pedantic
> @opindex Wpedantic
> @opindex Wno-pedantic
> Issue all the warnings demanded by strict ISO C and ISO C++;
> reject all programs that use forbidden extensions, and some other
> programs that do not follow ISO C and ISO C++.  For ISO C, follows the
> version of the ISO C standard specified by any @option{-std} option used.
> 
> Valid ISO C and ISO C++ programs should compile properly with or without
> this option (though a rare few require @option{-ansi} or a
> @option{-std} option specifying the required version of ISO C)@.  However,
> without this option, certain GNU extensions and traditional C and C++
> features are supported as well.  With this option, they are rejected.

Well, not quite so. I enabled -Wpedantic with glibc and have hundreds of
warnings and only the zero-size array one errors out. There is clearly an
inconsistency here.

Reply via email to