From 47ce20aef1e636e601ef26a4bc7e05c64a000640 Mon Sep 17 00:00:00 2001 From: Ryan Libby Date: Sat, 21 Dec 2019 02:44:26 +0000 Subject: [PATCH] libdevdctl: g++9 avoid Wdeprecated-copy g++9 now warns about having defined an assignment operator but using the default copy constructor, or vice versa. Avoid the issue in libdevdctl by just using the default assignment operator too. Reviewed by: asomers, dim Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D22887 --- lib/libdevdctl/guid.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/libdevdctl/guid.h b/lib/libdevdctl/guid.h index 02ea6f27dc04..7e80555a22f3 100644 --- a/lib/libdevdctl/guid.h +++ b/lib/libdevdctl/guid.h @@ -70,9 +70,6 @@ class Guid Guid(const std::string &guid); static Guid InvalidGuid(); - /* Assignment */ - Guid& operator=(const Guid& rhs); - /* Test the validity of this guid. */ bool IsValid() const; @@ -110,13 +107,6 @@ Guid::InvalidGuid() return (Guid(INVALID_GUID)); } -inline Guid& -Guid::operator=(const Guid &rhs) -{ - m_GUID = rhs.m_GUID; - return (*this); -} - inline bool Guid::IsValid() const {