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_fru_cmd.cpp b/pldmtool/pldm_fru_cmd.cpp
index 39e7e51..8c353c8 100644
--- a/pldmtool/pldm_fru_cmd.cpp
+++ b/pldmtool/pldm_fru_cmd.cpp
@@ -35,7 +35,7 @@
GetFruRecordTableMetadata(GetFruRecordTableMetadata&&) = default;
GetFruRecordTableMetadata&
operator=(const GetFruRecordTableMetadata&) = delete;
- GetFruRecordTableMetadata& operator=(GetFruRecordTableMetadata&&) = default;
+ GetFruRecordTableMetadata& operator=(GetFruRecordTableMetadata&&) = delete;
using CommandInterface::CommandInterface;
@@ -408,7 +408,7 @@
GetFruRecordTable(const GetFruRecordTable&) = delete;
GetFruRecordTable(GetFruRecordTable&&) = default;
GetFruRecordTable& operator=(const GetFruRecordTable&) = delete;
- GetFruRecordTable& operator=(GetFruRecordTable&&) = default;
+ GetFruRecordTable& operator=(GetFruRecordTable&&) = delete;
using CommandInterface::CommandInterface;
std::pair<int, std::vector<uint8_t>> createRequestMsg() override