aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Wasserbäch <[email protected]>2019-10-03 22:49:27 +0200
committerTimothy Arceri <[email protected]>2019-11-07 11:32:55 +1100
commitacfea09dbd795fdf42cb5543a922e0cb90aa4969 (patch)
tree557e7546312bdef09ae1d1404902db5b64dcb717 /src
parent4f8cc032b71630e3a92b3e5de875e2126cc93fab (diff)
nir: fix unused function warning in src/compiler/nir/nir.c
This commit fixes the following warning: ../src/compiler/nir/nir.c:1827:1: warning: ‘dest_is_ssa’ defined but not used [-Wunused-function] 1827 | dest_is_ssa(nir_dest *dest, void *_state) | ^~~~~~~~~~~ Signed-off-by: Kai Wasserbäch <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index 1d7a7479d6c..f97c3175a22 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -1823,9 +1823,10 @@ cursor_next_instr(nir_cursor cursor)
unreachable("Inavlid cursor option");
}
-static bool
+ASSERTED static bool
dest_is_ssa(nir_dest *dest, void *_state)
{
+ (void) _state;
return dest->is_ssa;
}