diff options
author | Ed Tanous <edtanous@google.com> | 2022-01-06 23:44:41 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-01-12 21:32:14 +0300 |
commit | f94c4ecf9cf61b91b552731e4e03cd84c1070972 (patch) | |
tree | 445183e7954963ab13afc255845237d5567aab53 /redfish-core/lib/ethernet.hpp | |
parent | cd5e430908916fad4cb9dcabf577cace2dca1cc5 (diff) | |
download | bmcweb-f94c4ecf9cf61b91b552731e4e03cd84c1070972.tar.xz |
Enable clang-tidy forward reference checks
Clang-13 adds new checks we can turn on, which find quite a few errors.
Tested: Code compiles
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I74b780760014c898cc440b37aea640b33e91c439
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index 049f9a6d53..87351782de 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -931,7 +931,8 @@ void getEthernetIfaceData(const std::string& ethifaceId, CallbackFunc&& callback) { crow::connections::systemBus->async_method_call( - [ethifaceId{std::string{ethifaceId}}, callback{std::move(callback)}]( + [ethifaceId{std::string{ethifaceId}}, + callback{std::forward<CallbackFunc>(callback)}]( const boost::system::error_code errorCode, dbus::utility::ManagedObjectType& resp) { EthernetInterfaceData ethData{}; @@ -982,7 +983,7 @@ template <typename CallbackFunc> void getEthernetIfaceList(CallbackFunc&& callback) { crow::connections::systemBus->async_method_call( - [callback{std::move(callback)}]( + [callback{std::forward<CallbackFunc>(callback)}]( const boost::system::error_code errorCode, dbus::utility::ManagedObjectType& resp) { // Callback requires vector<string> to retrieve all available |