diff options
author | Matt Turner <[email protected]> | 2014-05-02 12:10:16 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-05-22 10:17:16 -0700 |
commit | 1a31657a9b14c77fa6eb4517629006d2e9ac2ad4 (patch) | |
tree | 7690352ae1be1e44ac210caa6a3335e7e2cdc63c /src/mesa/main | |
parent | 5dd927bbfc36c8176536bb66a58467f97a1a3be3 (diff) |
mesa: Add uninitialized_vars macro from the Linux kernel.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/compiler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/compiler.h b/src/mesa/main/compiler.h index 97075f58e56..60069172434 100644 --- a/src/mesa/main/compiler.h +++ b/src/mesa/main/compiler.h @@ -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 |