From c4e8622f1e7293c2398d31b21a96471948b04f83 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Sun, 7 Apr 2019 14:37:34 +0200 Subject: [561-make-kea-to-build-on-last-macos-xcode] Fixed self assignment warnings --- src/lib/dns/tests/name_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_afsdb_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_ds_like_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_minfo_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_srv_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_tsig_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_txt_like_unittest.cc | 4 ++-- src/lib/dns/tests/rdata_unittest.cc | 4 ++-- src/lib/dns/tests/tsigkey_unittest.cc | 6 +++--- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/lib/dns/tests/name_unittest.cc b/src/lib/dns/tests/name_unittest.cc index 0380e59e3e..c49d22f61a 100644 --- a/src/lib/dns/tests/name_unittest.cc +++ b/src/lib/dns/tests/name_unittest.cc @@ -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 = *© EXPECT_EQ(example_name, copy); } diff --git a/src/lib/dns/tests/rdata_afsdb_unittest.cc b/src/lib/dns/tests/rdata_afsdb_unittest.cc index 81372ccc4f..26c31352f8 100644 --- a/src/lib/dns/tests/rdata_afsdb_unittest.cc +++ b/src/lib/dns/tests/rdata_afsdb_unittest.cc @@ -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 = *© EXPECT_EQ(0, copy.compare(rdata_afsdb)); } diff --git a/src/lib/dns/tests/rdata_ds_like_unittest.cc b/src/lib/dns/tests/rdata_ds_like_unittest.cc index df72c54c6a..3daecfe99e 100644 --- a/src/lib/dns/tests/rdata_ds_like_unittest.cc +++ b/src/lib/dns/tests/rdata_ds_like_unittest.cc @@ -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 = *© EXPECT_EQ(0, copy.compare(this->rdata_ds_like)); } diff --git a/src/lib/dns/tests/rdata_minfo_unittest.cc b/src/lib/dns/tests/rdata_minfo_unittest.cc index fa2393d0ce..35ff55cb91 100644 --- a/src/lib/dns/tests/rdata_minfo_unittest.cc +++ b/src/lib/dns/tests/rdata_minfo_unittest.cc @@ -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 = *© EXPECT_EQ(0, copy.compare(rdata_minfo)); } diff --git a/src/lib/dns/tests/rdata_srv_unittest.cc b/src/lib/dns/tests/rdata_srv_unittest.cc index b9842af970..a3296f2f8c 100644 --- a/src/lib/dns/tests/rdata_srv_unittest.cc +++ b/src/lib/dns/tests/rdata_srv_unittest.cc @@ -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 = *© EXPECT_EQ(0, copy.compare(rdata_srv)); } diff --git a/src/lib/dns/tests/rdata_tsig_unittest.cc b/src/lib/dns/tests/rdata_tsig_unittest.cc index 808a260f8a..7b45b3b836 100644 --- a/src/lib/dns/tests/rdata_tsig_unittest.cc +++ b/src/lib/dns/tests/rdata_tsig_unittest.cc @@ -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 = *© EXPECT_EQ(0, copy.compare(rdata_tsig)); } diff --git a/src/lib/dns/tests/rdata_txt_like_unittest.cc b/src/lib/dns/tests/rdata_txt_like_unittest.cc index 19ada1d69f..603af1d4fd 100644 --- a/src/lib/dns/tests/rdata_txt_like_unittest.cc +++ b/src/lib/dns/tests/rdata_txt_like_unittest.cc @@ -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)); } diff --git a/src/lib/dns/tests/rdata_unittest.cc b/src/lib/dns/tests/rdata_unittest.cc index fa02808dce..83d980505f 100644 --- a/src/lib/dns/tests/rdata_unittest.cc +++ b/src/lib/dns/tests/rdata_unittest.cc @@ -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 = *© EXPECT_EQ(0, copy.compare(rdata_unknown)); } diff --git a/src/lib/dns/tests/tsigkey_unittest.cc b/src/lib/dns/tests/tsigkey_unittest.cc index e28f79eaa0..076d499d53 100644 --- a/src/lib/dns/tests/tsigkey_unittest.cc +++ b/src/lib/dns/tests/tsigkey_unittest.cc @@ -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 = *© compareTSIGKeys(original, copy); } -- cgit v1.2.3