[llvmlinux] The uninitialized_var() macro is gcc dependent

Manuel Schölling manuel.schoelling at gmx.de
Tue Sep 11 20:07:43 UTC 2012


Hi,

just a small hint: you can trick the uninitialized warning of clang using this macro:

#define uninitialized_var(x) x = *(&x)

instead of the gcc version of this macro:
#define uninitialized_var(x) x = x

Cheers,

Manuel





More information about the LLVMLinux mailing list