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/drivers/llvmpipe | |
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/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_vbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c index 534c5f48a64..d7fa9fd20bf 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_vbuf.c @@ -108,7 +108,7 @@ lp_setup_unmap_vertices(struct vbuf_render *vbr, ushort min_index, ushort max_index ) { - struct lp_setup_context *setup = lp_setup_context(vbr); + MAYBE_UNUSED struct lp_setup_context *setup = lp_setup_context(vbr); assert( setup->vertex_buffer_size >= (max_index+1) * setup->vertex_size ); /* do nothing */ } |