From: Tom Tromey Date: Wed, 1 Oct 2025 16:27:37 +0000 (-0600) Subject: Don't rely on deduction in run-on-main-thread.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=29c3f00511bbde3190509bde506a0fee555b71b1;p=thirdparty%2Fbinutils-gdb.git Don't rely on deduction in run-on-main-thread.c This changes one spot in run-on-main-thread.c to use an explicit template argument, rather than relying on deduction. The deduction would otherwise fail with the next patch. --- diff --git a/gdb/run-on-main-thread.c b/gdb/run-on-main-thread.c index bf53163b6b7..0cfe4716c24 100644 --- a/gdb/run-on-main-thread.c +++ b/gdb/run-on-main-thread.c @@ -151,7 +151,7 @@ INIT_GDB_FILE (run_on_main_thread) add_final_cleanup ([] () { #if CXX_STD_THREAD - std::lock_guard lock (runnable_mutex); + std::lock_guard lock (runnable_mutex); #endif runnables.clear (); });