summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-08-26 13:50:04 +0100
committerIan Romanick <[email protected]>2015-09-02 16:24:17 -0700
commit882aab00abb226c103b8c6fe514247334b4d2d04 (patch)
tree8b089650edb769f50f66addb9bf487b4ea4a6cc1 /src/mesa
parent8ba3b7661b4985194a01f565d2ae27db153bb12c (diff)
mesa: Silence unused parameter warnings in bufferobj.c
main/bufferobj.c: In function 'count_buffer_size': main/bufferobj.c:520:26: warning: unused parameter 'key' [-Wunused-parameter] count_buffer_size(GLuint key, void *data, void *userData) ^ main/bufferobj.c: In function 'flush_mapped_buffer_range_fallback': main/bufferobj.c:740:56: warning: unused parameter 'index' [-Wunused-parameter] gl_map_buffer_index index) ^ Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/bufferobj.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 243c47b23fc..7c6c70ac1f8 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -523,6 +523,7 @@ count_buffer_size(GLuint key, void *data, void *userData)
(const struct gl_buffer_object *) data;
GLuint *total = (GLuint *) userData;
+ (void) key;
*total = *total + bufObj->Size;
}
@@ -742,6 +743,7 @@ flush_mapped_buffer_range_fallback(struct gl_context *ctx,
(void) offset;
(void) length;
(void) obj;
+ (void) index;
/* no-op */
}