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


On Fri, Jan 09, 2004 at 08:15:45PM +0000, neil at daikokuya dot co dot uk 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
> > +

Yes, the test is a bit of defensive programming and is redundant in a
couple of ways.  Perhaps I'm too paranoid for my own good; I will
remove it unless somebody objects.

Thanks for looking at the patch.


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