diff options
author | Ian Romanick <[email protected]> | 2019-11-18 19:42:22 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2019-12-04 15:34:03 -0800 |
commit | 78409856094d58907915406ce87d385a8012eed6 (patch) | |
tree | a5c9f3a66e3582f69c6989deb83b2bc776b79573 /src/mesa/main/context.c | |
parent | a7e607641a2b6f1d89e1c5e6eaf91d6faf156286 (diff) |
mesa: Silence unused parameter warning
Unused since e4da8b9c331 ("mesa/compiler: rework tear down of
builtin/types").
src/mesa/main/context.c: In function ‘_mesa_free_context_data’:
src/mesa/main/context.c:1321:54: warning: unused parameter ‘destroy_compiler_types’ [-Wunused-parameter]
1321 | _mesa_free_context_data(struct gl_context *ctx, bool destroy_compiler_types)
| ^
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 5a8f0ff191e..a5bf99a266d 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1318,7 +1318,7 @@ fail: * \sa _mesa_initialize_context() and init_attrib_groups(). */ void -_mesa_free_context_data(struct gl_context *ctx, bool destroy_compiler_types) +_mesa_free_context_data(struct gl_context *ctx) { if (!_mesa_get_current_context()){ /* No current context, but we may need one in order to delete @@ -1421,7 +1421,7 @@ void _mesa_destroy_context( struct gl_context *ctx ) { if (ctx) { - _mesa_free_context_data(ctx, true); + _mesa_free_context_data(ctx); free( (void *) ctx ); } } |