[Mesa-dev] [PATCH 15/17] mesa: Silence unused parameter warnings in bufferobj.c
Ilia Mirkin
imirkin at alum.mit.edu
Wed Aug 26 10:30:42 PDT 2015
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
On Wed, Aug 26, 2015 at 1:20 PM, Ian Romanick <idr at freedesktop.org> wrote:
> From: Ian Romanick <ian.d.romanick at intel.com>
>
> 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 <ian.d.romanick at intel.com>
> ---
> src/mesa/main/bufferobj.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
> index e17b41c..eab9cef 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 */
> }
>
> --
> 2.1.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list