diff options
author | Christian Gmeiner <[email protected]> | 2019-08-12 11:09:47 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2019-08-12 16:58:13 +0000 |
commit | 914ecc9384ef31411bb06178f01cb0b2683fa344 (patch) | |
tree | 98de3416a4a984463c59bd67ca1cecce00234c10 /src/gallium | |
parent | e040c1b2749655e716dd21b035f003b041d8d3d1 (diff) |
etnaviv: fix compile warnings in release build
[27/31] Compiling C object 'src/gallium/drivers/etnaviv/df32d18@@etnaviv@sta/etnaviv_compiler_nir.c.o'.
In file included from ../../src/gitlab_mesa/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c:552:
../../src/gitlab_mesa/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h: In function 'ra_assign':
../../src/gitlab_mesa/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h:903:9: warning: unused variable 'ok' [-Wunused-variable]
bool ok = ra_allocate(g);
^~
../../src/gitlab_mesa/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c: In function 'etna_compile_shader_nir':
../../src/gitlab_mesa/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c:663:9: warning: unused variable 'ok' [-Wunused-variable]
bool ok = emit_shader(c->nir, &options, &v->num_temps, &num_consts);
^~
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Reviewed-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c index 44e0c1a29fb..4aad246cfb9 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c @@ -660,7 +660,7 @@ etna_compile_shader_nir(struct etna_shader_variant *v) }; unsigned num_consts; - bool ok = emit_shader(c->nir, &options, &v->num_temps, &num_consts); + ASSERTED bool ok = emit_shader(c->nir, &options, &v->num_temps, &num_consts); assert(ok); /* empty shader, emit NOP */ diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h index 0d30fe54dfd..c89ab9a9453 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir_emit.h @@ -900,7 +900,7 @@ ra_assign(struct state *state, nir_shader *shader) ralloc_free(defs); /* Allocate registers */ - bool ok = ra_allocate(g); + ASSERTED bool ok = ra_allocate(g); assert(ok); state->g = g; |