diff options
author | Grazvydas Ignotas <[email protected]> | 2016-04-16 04:00:12 +0300 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-04-25 12:23:21 +0200 |
commit | cbb0d4ad75e6309932af7995ca80fa5ff5db7c70 (patch) | |
tree | 82a47174ffd75e683e8ab9fe75f5886c59180db5 /src/gallium/auxiliary | |
parent | bbeb9ab2f71409aad47485e7a1b8900f6839a481 (diff) |
gallium: fix warnings in release build
Mark variables MAYBE_UNUSED to avoid unused-but-set-variable warnings
in release build.
Signed-off-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 2 | ||||
-rw-r--r-- | src/gallium/auxiliary/util/u_surface.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c index 64af321558e..7717d784f78 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c +++ b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c @@ -826,7 +826,7 @@ fenced_buffer_fence(struct pb_buffer *buf, assert(fenced_buf->validation_flags); if (fenced_buf->fence) { - boolean destroyed = fenced_buffer_remove_locked(fenced_mgr, fenced_buf); + MAYBE_UNUSED boolean destroyed = fenced_buffer_remove_locked(fenced_mgr, fenced_buf); assert(!destroyed); } if (fence) { diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c index c150d92b967..4ef81c041c4 100644 --- a/src/gallium/auxiliary/util/u_surface.c +++ b/src/gallium/auxiliary/util/u_surface.c @@ -254,7 +254,8 @@ util_resource_copy_region(struct pipe_context *pipe, struct pipe_transfer *src_trans, *dst_trans; uint8_t *dst_map; const uint8_t *src_map; - enum pipe_format src_format, dst_format; + MAYBE_UNUSED enum pipe_format src_format; + enum pipe_format dst_format; struct pipe_box dst_box; assert(src && dst); |