diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-27 15:45:38 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-02-27 15:45:38 +0000 |
commit | d1d41216825c0ac8ece71768145834eb22379248 (patch) | |
tree | 11da938ab3dc9872cd8dee83262e23fb15e013d1 /src/mesa/shader/slang/slang_utility.h | |
parent | 9ac9605de156408580b81ba7e2780bd3f5372c6d (diff) |
silence a bunch of warnings
Diffstat (limited to 'src/mesa/shader/slang/slang_utility.h')
-rw-r--r-- | src/mesa/shader/slang/slang_utility.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_utility.h b/src/mesa/shader/slang/slang_utility.h index b4bde3d538..346ce6b657 100644 --- a/src/mesa/shader/slang/slang_utility.h +++ b/src/mesa/shader/slang/slang_utility.h @@ -32,7 +32,7 @@ extern "C" { /* Compile-time assertions. If the expression is zero, try to declare an
* array of size [-1] to cause compilation error.
*/
-#define static_assert(expr) do { int _array[(expr) ? 1 : -1]; _array[0]; } while (0)
+#define static_assert(expr) do { int _array[(expr) ? 1 : -1]; (void) _array[0]; } while (0)
#define slang_alloc_free(ptr) _mesa_free (ptr)
#define slang_alloc_malloc(size) _mesa_malloc (size)
|