Default warnings and useless extensions (e.g. arithmetic on void *)

Richard Guenther richard.guenther@gmail.com
Mon Jun 9 14:02:00 GMT 2008


On Mon, Jun 9, 2008 at 3:46 PM, Vincent Lefevre <vincent+gcc@vinc17.org> wrote:
> Is there any reason why "gcc -Wall" doesn't emit warnings by default
> on some useless extensions such as pointer arithmetic on (void *)?

Use -pedantic to warn about extensions.  It doesn't make sense to
warn for extensions if they are not deprecated.  After all they are extensions.

Richard.



More information about the Gcc mailing list