Why does gcc allow implicit conversion from const T* to T* (in C)?

Ian Lance Taylor iant@google.com
Tue May 5 14:59:00 GMT 2009


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



More information about the Gcc-help mailing list