[Mesa-dev] [PATCH] pipebuffer: Silence GCC unused-but-set-variable warning.
Vinson Lee
vlee at freedesktop.org
Wed Jul 29 20:06:48 PDT 2015
pb_buffer_fenced.c: In function 'fenced_buffer_fence':
pb_buffer_fenced.c:849:18: warning: variable 'destroyed' set but not used [-Wunused-but-set-variable]
boolean destroyed;
^
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
index 08935b4..f6608b3 100644
--- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
+++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
@@ -849,6 +849,7 @@ fenced_buffer_fence(struct pb_buffer *buf,
boolean destroyed;
destroyed = fenced_buffer_remove_locked(fenced_mgr, fenced_buf);
assert(!destroyed);
+ (void) destroyed;
}
if (fence) {
ops->fence_reference(ops, &fenced_buf->fence, fence);
--
2.1.4
More information about the mesa-dev
mailing list