Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Dec 2019 02:44:26 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355974 - head/lib/libdevdctl
Message-ID:  <201912210244.xBL2iQ4x088545@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rlibby
Date: Sat Dec 21 02:44:26 2019
New Revision: 355974
URL: https://svnweb.freebsd.org/changeset/base/355974

Log:
  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:
  head/lib/libdevdctl/guid.h

Modified: head/lib/libdevdctl/guid.h
==============================================================================
--- head/lib/libdevdctl/guid.h	Sat Dec 21 02:44:13 2019	(r355973)
+++ head/lib/libdevdctl/guid.h	Sat Dec 21 02:44:26 2019	(r355974)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912210244.xBL2iQ4x088545>