clang-error: fix clang-diagnostic-defaulted-function-deleted error
The clang-diagnostic-defaulted-function-deleted error is generated when
explicitly defaulted move assignment operator is implicitly deleted.
This commit fixes those errors.
Change-Id: I7a407dd3411b19a73a13b1c1e4805b89fc2ec51a
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/pldmtool/pldm_fw_update_cmd.cpp b/pldmtool/pldm_fw_update_cmd.cpp
index 87c4d6e..3466e54 100644
--- a/pldmtool/pldm_fw_update_cmd.cpp
+++ b/pldmtool/pldm_fw_update_cmd.cpp
@@ -80,7 +80,7 @@
GetStatus(const GetStatus&) = delete;
GetStatus(GetStatus&&) = default;
GetStatus& operator=(const GetStatus&) = delete;
- GetStatus& operator=(GetStatus&&) = default;
+ GetStatus& operator=(GetStatus&&) = delete;
using CommandInterface::CommandInterface;
@@ -170,7 +170,7 @@
GetFwParams(const GetFwParams&) = delete;
GetFwParams(GetFwParams&&) = default;
GetFwParams& operator=(const GetFwParams&) = delete;
- GetFwParams& operator=(GetFwParams&&) = default;
+ GetFwParams& operator=(GetFwParams&&) = delete;
using CommandInterface::CommandInterface;
@@ -416,7 +416,7 @@
QueryDeviceIdentifiers(const QueryDeviceIdentifiers&) = delete;
QueryDeviceIdentifiers(QueryDeviceIdentifiers&&) = default;
QueryDeviceIdentifiers& operator=(const QueryDeviceIdentifiers&) = delete;
- QueryDeviceIdentifiers& operator=(QueryDeviceIdentifiers&&) = default;
+ QueryDeviceIdentifiers& operator=(QueryDeviceIdentifiers&&) = delete;
/**
* @brief Implementation of createRequestMsg for QueryDeviceIdentifiers