From f161ecaa72156564058624e573af547fd26ba5b2 Mon Sep 17 00:00:00 2001 From: Michael Tryby Date: Tue, 16 Apr 2019 17:40:40 -0400 Subject: [PATCH] Fixing build warnings on gcc --- tests/test_curve.cpp | 12 ++++++------ tests/test_link.cpp | 4 ++-- tests/test_node.cpp | 4 ++-- tests/test_pattern.cpp | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/test_curve.cpp b/tests/test_curve.cpp index 7472c4f..8cb9705 100644 --- a/tests/test_curve.cpp +++ b/tests/test_curve.cpp @@ -71,20 +71,20 @@ BOOST_FIXTURE_TEST_CASE(test_curve_id_isvalid, FixtureInitClose) { int index; - error = EN_addcurve(ph, "C1"); + error = EN_addcurve(ph, (char *)"C1"); BOOST_REQUIRE(error == 0); - error = EN_addcurve(ph, "C 2"); + error = EN_addcurve(ph, (char *)"C 2"); BOOST_REQUIRE(error == 250); - error = EN_addcurve(ph, "C\"2"); + error = EN_addcurve(ph, (char *)"C\"2"); BOOST_REQUIRE(error == 250); - error = EN_addcurve(ph, "C;2"); + error = EN_addcurve(ph, (char *)"C;2"); BOOST_REQUIRE(error == 250); - EN_getcurveindex(ph, "C1", &index); - error = EN_setcurveid(ph, index, "C;2"); + EN_getcurveindex(ph, (char *)"C1", &index); + error = EN_setcurveid(ph, index, (char *)"C;2"); BOOST_REQUIRE(error == 250); } diff --git a/tests/test_link.cpp b/tests/test_link.cpp index aef009e..0863d96 100644 --- a/tests/test_link.cpp +++ b/tests/test_link.cpp @@ -76,8 +76,8 @@ BOOST_FIXTURE_TEST_CASE(test_link_id_isvalid, FixtureInitClose) error = EN_addlink(ph, (char *)"L;2", EN_PIPE, (char *)"N1", (char *)"N2"); BOOST_REQUIRE(error == 250); - EN_getlinkindex(ph, "L1", &index); - error = EN_setlinkid(ph, index, "L;1"); + EN_getlinkindex(ph, (char *)"L1", &index); + error = EN_setlinkid(ph, index, (char *)"L;1"); BOOST_REQUIRE(error == 250); } diff --git a/tests/test_node.cpp b/tests/test_node.cpp index ebe22a9..907ae4e 100644 --- a/tests/test_node.cpp +++ b/tests/test_node.cpp @@ -63,8 +63,8 @@ BOOST_FIXTURE_TEST_CASE(test_node_validate_id, FixtureInitClose) error = EN_addnode(ph, (char *)"N;3", EN_JUNCTION); BOOST_REQUIRE(error == 250); - EN_getnodeindex(ph, "N2", &index); - error = EN_setnodeid(ph, index, "N;2"); + EN_getnodeindex(ph, (char *)"N2", &index); + error = EN_setnodeid(ph, index, (char *)"N;2"); BOOST_REQUIRE(error = 250); } diff --git a/tests/test_pattern.cpp b/tests/test_pattern.cpp index 129d213..e370134 100644 --- a/tests/test_pattern.cpp +++ b/tests/test_pattern.cpp @@ -151,20 +151,20 @@ BOOST_FIXTURE_TEST_CASE(test_pat_id_isvalid, FixtureInitClose) { int index; - error = EN_addpattern(ph, "P1"); + error = EN_addpattern(ph, (char *)"P1"); BOOST_REQUIRE(error == 0); - error = EN_addpattern(ph, "P 2"); + error = EN_addpattern(ph, (char *)"P 2"); BOOST_REQUIRE(error == 250); - error = EN_addpattern(ph, "P\"2"); + error = EN_addpattern(ph, (char *)"P\"2"); BOOST_REQUIRE(error == 250); - error = EN_addpattern(ph, "P;2"); + error = EN_addpattern(ph, (char *)"P;2"); BOOST_REQUIRE(error == 250); - EN_getpatternindex(ph, "P1", &index); - error = EN_setpatternid(ph, index, "P;1"); + EN_getpatternindex(ph, (char *)"P1", &index); + error = EN_setpatternid(ph, index, (char *)"P;1"); BOOST_REQUIRE(error == 250); }