Allow building with boost 1.87
Boost for whatever reason added nodiscard on boost::asio::spawn. Long
term someone likely needs to move this coroutine stuff over to c++20
coroutines, but for now, put in maybe_unused where appropriate.
Change-Id: I59d1851476ed29290e260ba31ef1fe7508b3f441
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/dbus-sdr/storagecommands.cpp b/dbus-sdr/storagecommands.cpp
index fbc0c98..fa27f22 100644
--- a/dbus-sdr/storagecommands.cpp
+++ b/dbus-sdr/storagecommands.cpp
@@ -346,11 +346,11 @@
});
// call once to populate
- boost::asio::spawn(*getIoContext(),
- [](boost::asio::yield_context yield) {
- replaceCacheFru(getSdBus(), yield);
- },
- {});
+ (void)boost::asio::spawn(*getIoContext(),
+ [](boost::asio::yield_context yield) {
+ replaceCacheFru(getSdBus(), yield);
+ },
+ {});
}
/** @brief implements the read FRU data command