This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Default warnings and useless extensions (e.g. arithmetic on void *)
- From: "Richard Guenther" <richard dot guenther at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 9 Jun 2008 16:02:05 +0200
- Subject: Re: Default warnings and useless extensions (e.g. arithmetic on void *)
- References: <20080609134606.GB3299@vin.lip.ens-lyon.fr>
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.