From 64bc31d819fcee89867c94d17f77cbee3be55ad9 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 7 Sep 2022 17:25:59 +0200 Subject: [PATCH] Work around spurious GCC warning w/ string concat --- src/wine-host/bridges/group.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wine-host/bridges/group.cpp b/src/wine-host/bridges/group.cpp index 8af78780..745e5fe3 100644 --- a/src/wine-host/bridges/group.cpp +++ b/src/wine-host/bridges/group.cpp @@ -138,7 +138,12 @@ bool GroupBridge::is_event_loop_inhibited() noexcept { void GroupBridge::handle_plugin_run(size_t plugin_id, HostBridge* bridge) { // Blocks this thread until the plugin shuts down bridge->run(); - logger_.log("'" + bridge->plugin_path_.string() + "' has exited"); + + // FIXME: This results in a spurious compiler warning if you inline + // `plugin_path`: + // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105329 + const std::string plugin_path = bridge->plugin_path_.string(); + logger_.log("'" + plugin_path + "' has exited"); // After the plugin has exited we'll remove this thread's plugin from the // active plugins. This is done within the IO context because the call to