[Mesa-dev] [PATCH v2 06/29] gallium/aux/util/u_format.c: Fix one -Wunused-param warning
Gert Wollny
gw.fossdev at gmail.com
Thu Nov 16 15:09:39 UTC 2017
This warning was issued only in release mode. Fix it by fake-using the
parameter.
Signed-off-by: Gert Wollny <gw.fossdev at gmail.com>
Reviewed-by: Brian Paul <brianp at vmware.com> (v1)
---
src/gallium/auxiliary/util/u_format.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c
index 0fc3231654..369b4c3126 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;
--
2.13.6
More information about the mesa-dev
mailing list