Boost 1.87 take 2
In a prior commit, we caused some issues when we ignored a nodiscard
flag. This was actually warning us of something useful.
Remove the (void) and implement directly including detach, which
similar to ipmi, is the appropriate way to resolve this build conflict.
Change-Id: I48098a9eaa95df5b4bda8cac9dc40a180d494982
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/meson.build b/meson.build
index 73bdd32..33cabe3 100644
--- a/meson.build
+++ b/meson.build
@@ -24,8 +24,7 @@
]
deps = [
- dependency('boost'),
- dependency('boost', modules: ['coroutine']),
+ dependency('boost', modules: ['coroutine', 'context']),
dependency('phosphor-dbus-interfaces'),
dependency('phosphor-logging'),
dependency('sdbusplus'),
diff --git a/src/srvcfg_manager.cpp b/src/srvcfg_manager.cpp
index 6eaa611..2094366 100644
--- a/src/srvcfg_manager.cpp
+++ b/src/srvcfg_manager.cpp
@@ -15,6 +15,7 @@
*/
#include "srvcfg_manager.hpp"
+#include <boost/asio/detached.hpp>
#include <boost/asio/spawn.hpp>
#ifdef USB_CODE_UPDATE
@@ -501,7 +502,7 @@
return;
}
updateInProgress = true;
- (void)boost::asio::spawn(
+ boost::asio::spawn(
conn->get_io_context(),
[this](boost::asio::yield_context yield) {
// Stop and apply configuration for all objects
@@ -526,7 +527,7 @@
}
updateInProgress = false;
},
- {});
+ boost::asio::detached);
});
}