2009/3/10 Sylvain Pion: > Manuel López-Ibáñez wrote: >> 2009/3/10 Sylvain Pion: >>> >>> Yes, but like any extension, it's nice to be able to disable them >>> as errors, so as to be able to use GCC for checking code portability. >> >> So use -pedantic-errors as it says in the manual. You should really >> use -pedantic-erros if you do not want extensions. > > Sure. It just forces you to have additional compiler-specific flags > in your configuration system.
I don't think that's unreasonable if you want to use GCC for checking portability. The primary use case is as the GNU compiler, not a portability checker. If you're arguing for GCC to disable all extensions by default that's another topic, and a contentious one :-) Jonathan