diff options
author | Chia-I Wu <olv@lunarg.com> | 2010-08-06 16:57:04 +0800 |
---|---|---|
committer | Chia-I Wu <olv@lunarg.com> | 2010-08-06 17:14:21 +0800 |
commit | d38afcd2f286e924e0f9b7f484712ac19e3f98fc (patch) | |
tree | 87060499c19e20eb0de4bcd7913781159781a2d6 /src/gallium/auxiliary/draw/draw_decompose_tmp.h | |
parent | bec87456ed80e7561f7ac73b01e648896971a381 (diff) |
draw: Avoid mixed declarations and code.
Do not expand LOCAL_VARS to void expression. Otherwise, declarations
and code will be mixed when more variables are declared in FUNC_ENTER.
This fixes fdo bug #29416.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_decompose_tmp.h')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_decompose_tmp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_decompose_tmp.h b/src/gallium/auxiliary/draw/draw_decompose_tmp.h index cb25202323..a52d2b5058 100644 --- a/src/gallium/auxiliary/draw/draw_decompose_tmp.h +++ b/src/gallium/auxiliary/draw/draw_decompose_tmp.h @@ -30,7 +30,7 @@ /* these macros are optional */ #ifndef LOCAL_VARS -#define LOCAL_VARS do {} while (0) +#define LOCAL_VARS #endif #ifndef FUNC_ENTER #define FUNC_ENTER do {} while (0) @@ -50,7 +50,7 @@ FUNC(FUNC_VARS) { unsigned idx[6], i; ushort flags; - LOCAL_VARS; + LOCAL_VARS FUNC_ENTER; |