This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Why does gcc allow implicit conversion from const T* to T* (in C)?
- From: Ian Lance Taylor <iant at google dot com>
- To: Sebastian Mach <phresnel at googlemail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 05 May 2009 07:58:46 -0700
- Subject: Re: Why does gcc allow implicit conversion from const T* to T* (in C)?
- References: <7f0369b60905050136j3fae2c81ucdfa289d89c87ba6@mail.gmail.com>
Sebastian Mach <phresnel@googlemail.com> writes:
> A member at the site gamedev.net came up with the question why the
> following only gives a warning, even with -Wall -Wextra -std=c99
> -pedantic:
I think you are looking for -pedantic-errors.
Ian