Mesa (master): nir: fix unused function warning in src/compiler/nir/nir.c
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Nov 7 00:36:50 UTC 2019
Module: Mesa
Branch: master
Commit: acfea09dbd795fdf42cb5543a922e0cb90aa4969
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=acfea09dbd795fdf42cb5543a922e0cb90aa4969
Author: Kai Wasserbäch <kai at dev.carbon-project.org>
Date: Thu Oct 3 22:49:27 2019 +0200
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 <kai at dev.carbon-project.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
src/compiler/nir/nir.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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;
}
More information about the mesa-commit
mailing list