diff --git a/test/generator/gpu_multi_context_threaded_aottest.cpp b/test/generator/gpu_multi_context_threaded_aottest.cpp index 05852909ba57..fdaab364b7c9 100644 --- a/test/generator/gpu_multi_context_threaded_aottest.cpp +++ b/test/generator/gpu_multi_context_threaded_aottest.cpp @@ -107,7 +107,9 @@ bool init_context(int &context) { context = 0; return true; } -void destroy_context(int & /* context */) { +void destroy_context(int &context) { + context = 0; +} #define HAS_MULTIPLE_CONTEXTS false #endif