projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e979ab7
)
gallium/aux/util/u_format.c: Fix one -Wunused-param warning
author
Gert Wollny
<gw.fossdev@gmail.com>
Thu, 16 Nov 2017 15:09:39 +0000
(16:09 +0100)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_format.c
b/src/gallium/auxiliary/util/u_format.c
index 0fc323165481b0a62715274873ac36807221bc5e..369b4c3126b4b72858f01c1956f0a2c84d82b280 100644
(file)
--- 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;