nir: fix unused function warning in src/compiler/nir/nir.c
authorKai Wasserbäch <kai@dev.carbon-project.org>
Thu, 3 Oct 2019 20:49:27 +0000 (22:49 +0200)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 7 Nov 2019 00:32:55 +0000 (11:32 +1100)
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@dev.carbon-project.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.c

index 1d7a7479d6c7f1d73fc977fc5cc3ac0ce11442dd..f97c3175a22ce26ec5510a2148254a7cb5db8a94 100644 (file)
@@ -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;
 }