diff options
author | Vinson Lee <vlee@vmware.com> | 2010-01-01 15:12:58 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-01-01 15:12:58 -0800 |
commit | 88bd32383a06224c742f6af59fcd95cd11284d5b (patch) | |
tree | c115c71078daa5088c8d9119492d12290fec2a3e /src/mesa/shader | |
parent | 7df06e7e9d5d5ac0a5a2fa0af11afa7f5241c5a4 (diff) | |
download | external_mesa3d-88bd32383a06224c742f6af59fcd95cd11284d5b.zip external_mesa3d-88bd32383a06224c742f6af59fcd95cd11284d5b.tar.gz external_mesa3d-88bd32383a06224c742f6af59fcd95cd11284d5b.tar.bz2 |
ARB prog parser: Silence unused variable warnings.
Diffstat (limited to 'src/mesa/shader')
-rw-r--r-- | src/mesa/shader/program_parse.y | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse.y b/src/mesa/shader/program_parse.y index 3f1a350..b40b216 100644 --- a/src/mesa/shader/program_parse.y +++ b/src/mesa/shader/program_parse.y @@ -2297,7 +2297,9 @@ set_dst_reg(struct prog_dst_register *r, gl_register_file file, GLint index) const GLint maxIndex = 1 << INST_INDEX_BITS; const GLint minIndex = 0; ASSERT(index >= minIndex); + (void) minIndex; ASSERT(index <= maxIndex); + (void) maxIndex; ASSERT(file == PROGRAM_TEMPORARY || file == PROGRAM_ADDRESS || file == PROGRAM_OUTPUT); @@ -2338,7 +2340,9 @@ set_src_reg_swz(struct asm_src_register *r, gl_register_file file, GLint index, const GLint minIndex = -(1 << INST_INDEX_BITS); ASSERT(file < PROGRAM_FILE_MAX); ASSERT(index >= minIndex); + (void) minIndex; ASSERT(index <= maxIndex); + (void) maxIndex; memset(r, 0, sizeof(*r)); r->Base.File = file; r->Base.Index = index; |