[cfe-dev] warnings in clang

Florian Weimer fw at deneb.enyo.de
Sun Nov 16 01:43:06 PST 2008


* Mike Stump:

> It is really easy to fix, for example:
>
> PtrRef = 0;
>
> becomes:
>
>    uintptr_t x = 0;
>    memcpy (&PtrRef, x, sizeof());
>
> suddenly, perfectly type safe, and, not an instruction larger, not a  
> single clock slower to boot.

Unless you compile with -fno-builtins because that makes other code
run quite a bit faster.



More information about the cfe-dev mailing list