This is the mail archive of the gcc-patches@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: [C++ PATCH] [PR 13005] Warn about casting of incomplete types


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
> +


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