mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 22:40:09 +01:00
intel/compiler: add ASSERTED annotation to avoid "unused variable" warning
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
This commit is contained in:
parent
91efae4f80
commit
8074f68b3b
1 changed files with 4 additions and 3 deletions
|
|
@ -396,9 +396,10 @@ bool brw_try_override_assembly(struct brw_codegen *p, int start_offset,
|
|||
read(fd, p->store + start_offset, sb.st_size);
|
||||
close(fd);
|
||||
|
||||
bool valid = brw_validate_instructions(p->devinfo, p->store,
|
||||
start_offset, p->next_insn_offset,
|
||||
0);
|
||||
ASSERTED bool valid =
|
||||
brw_validate_instructions(p->devinfo, p->store,
|
||||
start_offset, p->next_insn_offset,
|
||||
0);
|
||||
assert(valid);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue