Fixing build warnings on gcc

This commit is contained in:
Michael Tryby
2019-04-16 17:40:40 -04:00
parent 3186ec326c
commit f161ecaa72
4 changed files with 16 additions and 16 deletions

View File

@@ -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);
}