From a94d5e81a5fd8cfd39f2c3213504855478810dc6 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Fri, 22 Jul 2011 08:11:15 +0000 Subject: [PATCH] Fix rt-gamma-test build with gcc-4.6. Fixes this GCC error. main.c: In function 'render': main.c:85:16: error: variable 'gamma' set but not used [-Werror=unused-but-set-variable] --- examples/rt-gamma-test/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/rt-gamma-test/main.c b/examples/rt-gamma-test/main.c index 125a613..046d0ac 100644 --- a/examples/rt-gamma-test/main.c +++ b/examples/rt-gamma-test/main.c @@ -82,7 +82,7 @@ render(void) SVGA3dPrimitiveRange *ranges; static Matrix view, instance; static uint32 frame = 0; - float x, y, gamma; + float x, y; Matrix_Copy(view, gIdentityMatrix); Matrix_Scale(view, 0.5, 0.5, 0.5, 1.0); @@ -90,8 +90,6 @@ render(void) Matrix_RotateX(view, ++frame * 0.001f); Matrix_Translate(view, 0, 0, 15); - gamma = 0.f; - for (y = 0; y < GRID_Y_COUNT; y++) { for (x = 0; x < GRID_X_COUNT; x++) { float gamma = (x + y * GRID_X_COUNT) * GAMMA_STEP;