This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]