gallium/aux/util/u_format.c: Fix one -Wunused-param warning
authorGert Wollny <gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:39 +0000 (16:09 +0100)
committerBrian Paul <brianp@vmware.com>
Fri, 17 Nov 2017 16:27:56 +0000 (09:27 -0700)
This warning was issued only in release mode. Fix it by fake-using the
parameter.

Signed-off-by: Gert Wollny <gw.fossdev@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com> (v1)
src/gallium/auxiliary/util/u_format.c

index 0fc323165481b0a62715274873ac36807221bc5e..369b4c3126b4b72858f01c1956f0a2c84d82b280 100644 (file)
@@ -249,6 +249,8 @@ util_format_is_supported(enum pipe_format format, unsigned bind)
        util_format_is_float(format)) {
       return FALSE;
    }
+#else
+   (void)bind;
 #endif
 
    return TRUE;