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_base_cmd.cpp b/pldmtool/pldm_base_cmd.cpp
index ef2a1a5..c755b31 100644
--- a/pldmtool/pldm_base_cmd.cpp
+++ b/pldmtool/pldm_base_cmd.cpp
@@ -89,7 +89,7 @@
GetPLDMTypes(const GetPLDMTypes&) = delete;
GetPLDMTypes(GetPLDMTypes&&) = default;
GetPLDMTypes& operator=(const GetPLDMTypes&) = delete;
- GetPLDMTypes& operator=(GetPLDMTypes&&) = default;
+ GetPLDMTypes& operator=(GetPLDMTypes&&) = delete;
using CommandInterface::CommandInterface;
@@ -151,7 +151,7 @@
GetPLDMVersion(const GetPLDMVersion&) = delete;
GetPLDMVersion(GetPLDMVersion&&) = default;
GetPLDMVersion& operator=(const GetPLDMVersion&) = delete;
- GetPLDMVersion& operator=(GetPLDMVersion&&) = default;
+ GetPLDMVersion& operator=(GetPLDMVersion&&) = delete;
explicit GetPLDMVersion(const char* type, const char* name, CLI::App* app) :
CommandInterface(type, name, app)
@@ -212,7 +212,7 @@
GetTID(const GetTID&) = delete;
GetTID(GetTID&&) = default;
GetTID& operator=(const GetTID&) = delete;
- GetTID& operator=(GetTID&&) = default;
+ GetTID& operator=(GetTID&&) = delete;
using CommandInterface::CommandInterface;
@@ -250,7 +250,7 @@
GetPLDMCommands(const GetPLDMCommands&) = delete;
GetPLDMCommands(GetPLDMCommands&&) = default;
GetPLDMCommands& operator=(const GetPLDMCommands&) = delete;
- GetPLDMCommands& operator=(GetPLDMCommands&&) = default;
+ GetPLDMCommands& operator=(GetPLDMCommands&&) = delete;
explicit GetPLDMCommands(const char* type, const char* name,
CLI::App* app) :