mesa: Add uninitialized_vars macro from the Linux kernel.

This commit is contained in:
Matt Turner 2014-05-02 12:10:16 -07:00
parent 5dd927bbfc
commit 1a31657a9b

View file

@ -264,6 +264,12 @@ static INLINE GLuint CPU_TO_LE32(GLuint x)
#define unreachable()
#endif
/*
* A trick to suppress uninitialized variable warning without generating any
* code
*/
#define uninitialized_var(x) x = x
#if (__GNUC__ >= 3)
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
#else