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 *)
2008/6/9 Richard Guenther <richard.guenther@gmail.com>:
> 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.
Nonetheless, I think that the part about -Wc++-compat not warning
about pointer of type 'void *' used in arithmetic is a valid
criticism. Don't you agree?
Cheers,
Manuel.