Author: dim
Date: Sat Apr 25 13:03:37 2020
New Revision: 360302
URL: https://svnweb.freebsd.org/changeset/base/360302

Log:
  MFC r355974 (by rlibby):
  
  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

Modified:
  stable/11/lib/libdevdctl/guid.h
Directory Properties:
  stable/11/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/12/lib/libdevdctl/guid.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/11/lib/libdevdctl/guid.h
==============================================================================
--- stable/11/lib/libdevdctl/guid.h     Sat Apr 25 12:57:20 2020        
(r360301)
+++ stable/11/lib/libdevdctl/guid.h     Sat Apr 25 13:03:37 2020        
(r360302)
@@ -70,9 +70,6 @@ class Guid (public)
        Guid(const std::string &guid);
        static Guid InvalidGuid();
 
-       /* Assignment */
-       Guid& operator=(const Guid& rhs);
-
        /* Test the validity of this guid. */
        bool IsValid()                   const;
 
@@ -108,13 +105,6 @@ inline Guid
 Guid::InvalidGuid()
 {
        return (Guid(INVALID_GUID));
-}
-
-inline Guid&
-Guid::operator=(const Guid &rhs)
-{
-       m_GUID = rhs.m_GUID;
-       return (*this);
 }
 
 inline bool
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to