glsl: silence unused var warnings
authorBrian Paul <brianp@vmware.com>
Mon, 24 May 2010 17:43:55 +0000 (11:43 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 24 May 2010 17:43:55 +0000 (11:43 -0600)
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile.c

index 2d8116850f9ba27bd3a2fecdc6926fa9ced9e3c5..0504d47765f84a703ca9538bf8e930a9941b3eed 100644 (file)
@@ -5008,6 +5008,7 @@ _slang_codegen_global_variable(slang_assemble_ctx *A, slang_variable *var,
       }
 #else
       (void) is_rect_sampler_spec; /* silence warning */
+      (void) ctx;
 #endif
       {
          GLint sampNum = _mesa_add_sampler(prog->Parameters, varName, datatype);
index e7938e55ad9cc49131d8eb141a4c2d1bd4db6e66..b6b1f3c99067eaf52dbd717b050ca3ddc5a32c88 100644 (file)
@@ -2494,6 +2494,7 @@ init_default_precision(slang_output_ctx *O, slang_unit_type type)
       else
         O->default_precision[i] = PRECISION_HIGH;
 #else
+      (void) ctx;
       O->default_precision[i] = PRECISION_HIGH;
 #endif
    }
@@ -2743,6 +2744,8 @@ compile_with_grammar(const char *source,
         return GL_FALSE;
       }
    }
+#else
+   (void) ctx;
 #endif
 
 #if FEATURE_ARB_shading_language_120