Remove deprecated boost usage
Boost 1.87 has removed some deprecated usage. There was lots of warning
for these, but we didn't have warnings enabled, so now we have to make a
quick commit to fix it.
Enabled BOOST_ASIO_NO_DEPREATED so that the next time this happens, we
get early warning, and can simply remove that temporarily.
Change-Id: Iab1646d15321282fc687c9bbc1337a6218fa12a1
Signed-off-by: Ed Tanous <ed@tanous.net>
diff --git a/meson.build b/meson.build
index b8ef89d..ceba0ef 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,7 @@
add_project_arguments('-Wno-psabi', language: 'cpp')
boost_args = [
+ '-DBOOST_ASIO_NO_DEPRECATED',
'-DBOOST_SYSTEM_NO_DEPRECATED',
'-DBOOST_ERROR_CODE_HEADER_ONLY',
'-DBOOST_NO_RTTI',
diff --git a/src/fru_device.cpp b/src/fru_device.cpp
index 1b612e5..74704d2 100644
--- a/src/fru_device.cpp
+++ b/src/fru_device.cpp
@@ -1123,7 +1123,7 @@
std::shared_ptr<sdbusplus::asio::connection>& systemBus)
{
static boost::asio::steady_timer timer(io);
- timer.expires_from_now(std::chrono::seconds(1));
+ timer.expires_after(std::chrono::seconds(1));
// setup an async wait in case we get flooded with requests
timer.async_wait([&](const boost::system::error_code& ec) {