[cfe-dev] warnings in clang

Sebastian Redl sebastian.redl at getdesigned.at
Fri Nov 14 16:29:02 PST 2008


Mike Stump wrote:
> As I read that, it sounds like someone is praying and hoping and 
> violating the language standard.  Don't do that.  We don't trick gcc 
> into not complaining, if you do that, you _will_ lose.  One _must_ 
> write code that is type safe.  That isn't a trick.  I reviewed 
> lib/Bitcode/Reader/Deserialize.cpp Deserializer::ReadUIntPtr.  :-(  I 
> don't see anything that is type safe about this code.
Huh? So, it isn't a trick and indeed legal? Or it's not type safe and 
illegal?

I said that it's a trick to silence GCC's warning, not that it is 
actually legal.

Sebastian



More information about the cfe-dev mailing list