mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
i915: Fix GCC unused-variable warning in release build.
i915_debug_fp.c: In function ‘i915_disassemble_program’:
i915_debug_fp.c:302:11: warning: unused variable ‘size’ [-Wunused-variable]
GLuint size = program[0] & 0x1ff;
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
This commit is contained in:
parent
b28c037d64
commit
1ca39ec03c
1 changed files with 1 additions and 2 deletions
|
|
@ -299,12 +299,11 @@ print_dcl_op(GLuint opcode, const GLuint * program)
|
|||
void
|
||||
i915_disassemble_program(const GLuint * program, GLuint sz)
|
||||
{
|
||||
GLuint size = program[0] & 0x1ff;
|
||||
GLint i;
|
||||
|
||||
printf("\t\tBEGIN\n");
|
||||
|
||||
assert(size + 2 == sz);
|
||||
assert(program[0] & 0x1ff + 2 == sz);
|
||||
|
||||
program++;
|
||||
for (i = 1; i < sz; i += 3, program += 3) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue