]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[561-make-kea-to-build-on-last-macos-xcode] Fixed self assignment warnings
authorFrancis Dupont <fdupont@isc.org>
Sun, 7 Apr 2019 12:37:34 +0000 (14:37 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 17 May 2019 13:37:58 +0000 (09:37 -0400)
src/lib/dns/tests/name_unittest.cc
src/lib/dns/tests/rdata_afsdb_unittest.cc
src/lib/dns/tests/rdata_ds_like_unittest.cc
src/lib/dns/tests/rdata_minfo_unittest.cc
src/lib/dns/tests/rdata_srv_unittest.cc
src/lib/dns/tests/rdata_tsig_unittest.cc
src/lib/dns/tests/rdata_txt_like_unittest.cc
src/lib/dns/tests/rdata_unittest.cc
src/lib/dns/tests/tsigkey_unittest.cc

index 0380e59e3e07a6c55340bdba5b618df5203365f1..c49d22f61a6a3150664e48854142fb59a2b84b55 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2018 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2009-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -450,7 +450,7 @@ TEST_F(NameTest, assignment) {
     EXPECT_EQ(copy3, example_name);
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(example_name, copy);
 }
 
index 81372ccc4f9f2fc53b08e42ed615d11f1ca1232e..26c31352f84a5dbb1b342d3e2a1a4e9aec65a075 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -90,7 +90,7 @@ TEST_F(Rdata_AFSDB_Test, assignment) {
     EXPECT_EQ(0, copy3.compare(rdata_afsdb));
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(0, copy.compare(rdata_afsdb));
 }
 
index df72c54c6aa7cbcd961812bf8d633f7bb4645ce5..3daecfe99ef82d58298864389836b0d52e025a7f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -129,7 +129,7 @@ TYPED_TEST(Rdata_DS_LIKE_Test, assignment_DS_LIKE) {
     EXPECT_EQ(0, copy3.compare(this->rdata_ds_like));
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(0, copy.compare(this->rdata_ds_like));
 }
 
index fa2393d0ce766b7d804ae7ad72156d4efd722066..35ff55cb918c85d1b550a262892381dca86026b2 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -165,7 +165,7 @@ TEST_F(Rdata_MINFO_Test, assignment) {
     EXPECT_EQ(0, copy3.compare(rdata_minfo));
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(0, copy.compare(rdata_minfo));
 }
 
index b9842af9700521a4e6270fb08b884d250a034b22..a3296f2f8c102d3e54e4d2d49b3cc04705320f5d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -97,7 +97,7 @@ TEST_F(Rdata_SRV_Test, assignment) {
     EXPECT_EQ(0, copy3.compare(rdata_srv));
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(0, copy.compare(rdata_srv));
 }
 
index 808a260f8af608253b74ac60a8c4de47089a395a..7b45b3b836ae1a625c8348fcc3906f22df0ac7cc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -330,7 +330,7 @@ TEST_F(Rdata_TSIG_Test, assignment) {
     EXPECT_EQ(0, copy3.compare(rdata_tsig));
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(0, copy.compare(rdata_tsig));
 }
 
index 19ada1d69f1d858fe411c90314a8023e70b8e05a..603af1d4fd243af687b01bbaecb7709398303025 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -353,7 +353,7 @@ TYPED_TEST(Rdata_TXT_LIKE_Test, assignment) {
     EXPECT_EQ(0, rdata4.compare(rdata1));
 
     // Self assignment
-    rdata2 = rdata2;
+    rdata2 = *&rdata2;
     EXPECT_EQ(0, rdata2.compare(rdata1));
 }
 
index fa02808dce97d4952879ac515d857d163dd8e484..83d980505fc816a842e3e0d8a10fba3fddc24d8b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -393,7 +393,7 @@ TEST_F(Rdata_Unknown_Test, assignment) {
     EXPECT_EQ(0, copy3.compare(rdata_unknown));
 
     // Self assignment
-    copy = copy;
+    copy = *&copy;
     EXPECT_EQ(0, copy.compare(rdata_unknown));
 }
 
index e28f79eaa0a14f8acc0ae5ad8707b2fbcde32a1d..076d499d53935ed96e82fb05f96cc0c863264fd0 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2019 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -152,8 +152,8 @@ TEST_F(TSIGKeyTest, assignment) {
     delete copy2;
     compareTSIGKeys(original, copy3);
 
-    // self assignment
-    copy = copy;
+    // Self assignment
+    copy = *&copy;
     compareTSIGKeys(original, copy);
 }