From: Gert Wollny Date: Thu, 16 Nov 2017 15:09:39 +0000 (+0100) Subject: gallium/aux/util/u_format.c: Fix one -Wunused-param warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf93a7fc9eba4f706749ef0051ac2d93122caf4c;p=mesa.git gallium/aux/util/u_format.c: Fix one -Wunused-param warning This warning was issued only in release mode. Fix it by fake-using the parameter. Signed-off-by: Gert Wollny Reviewed-by: Brian Paul (v1) --- diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c index 0fc32316548..369b4c3126b 100644 --- a/src/gallium/auxiliary/util/u_format.c +++ b/src/gallium/auxiliary/util/u_format.c @@ -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;