[C++ PATCH] [PR 13005] Warn about casting of incomplete types

neil@daikokuya.co.uk neil@daikokuya.co.uk
Fri Jan 9 20:15:00 GMT 2004


Stephen Ma wrote:-

> +  /* Make -Wcast-incomplete effective in C++ only */
> +  if (c_language != clk_cxx)
> +    warn_cast_incomplete = 0;
> +

This is unnecessary, given this:

> +Wcast-incomplete
> +C++
> +Warn about casting from/to incomplete types
> +



More information about the Gcc-patches mailing list