aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-12-13 17:01:17 +0000
committerEric Engestrom <[email protected]>2019-12-13 20:16:20 +0000
commit8074f68b3b02a0a60a276e88c5da36f42331bc28 (patch)
tree6a8c6fbe9474ff2cde01233b2b35ad79530e480b /src/intel
parent91efae4f8006970895710dd2298bfba088aa7554 (diff)
intel/compiler: add ASSERTED annotation to avoid "unused variable" warning
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_eu.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/intel/compiler/brw_eu.cpp b/src/intel/compiler/brw_eu.cpp
index f347d9f52ab..e30bbc75f2d 100644
--- a/src/intel/compiler/brw_eu.cpp
+++ b/src/intel/compiler/brw_eu.cpp
@@ -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;