diff options
author | Brian Paul <[email protected]> | 2010-05-24 11:43:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-05-24 11:43:55 -0600 |
commit | c10154a2988c30ce8e20c16e66be434a0e5c37a4 (patch) | |
tree | 24b94b17917c9513eb9c80604ec0b08818558812 /src/mesa/shader/slang | |
parent | 6460ba5eebc114ba74d1c34c64c40adf00805515 (diff) |
glsl: silence unused var warnings
Diffstat (limited to 'src/mesa/shader/slang')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 1 | ||||
-rw-r--r-- | src/mesa/shader/slang/slang_compile.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 2d8116850f9..0504d47765f 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -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); diff --git a/src/mesa/shader/slang/slang_compile.c b/src/mesa/shader/slang/slang_compile.c index e7938e55ad9..b6b1f3c9906 100644 --- a/src/mesa/shader/slang/slang_compile.c +++ b/src/mesa/shader/slang/slang_compile.c @@ -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 |