From a5568455551fda31d4b131f20583875af70c49da Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 21 Aug 2019 07:44:49 -0700 Subject: [PATCH] tests: Work around test warnings in clang-7 Self-assignment generates a Wself-assign-overloaded warning. --- tests/test_xpath_api.cpp | 2 +- tests/test_xpath_variables.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp index 7abf7d9..8687e35 100644 --- a/tests/test_xpath_api.cpp +++ b/tests/test_xpath_api.cpp @@ -123,7 +123,7 @@ TEST_XML(xpath_api_nodeset_copy, "") xpath_node_set copy3; copy3 = set; - copy3 = copy3; + copy3 = xpath_node_set(copy3); CHECK(copy3.size() == 2); CHECK_STRING(copy3[0].node().name(), STR("foo")); diff --git a/tests/test_xpath_variables.cpp b/tests/test_xpath_variables.cpp index 8a65e3c..3d2147c 100644 --- a/tests/test_xpath_variables.cpp +++ b/tests/test_xpath_variables.cpp @@ -454,7 +454,7 @@ TEST_XML(xpath_variables_copy, "") CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring")); - set3 = set3; + set3 = xpath_variable_set(set3); CHECK_XPATH_STRING_VAR(xml_node(), STR("substring($c, count($d[$a]) + $b)"), &set2, STR("ring"));