mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
mesa: Add uninitialized_vars macro from the Linux kernel.
This commit is contained in:
parent
5dd927bbfc
commit
1a31657a9b
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue