diff --git a/AllTests.c b/AllTests.c index 04129af..b5d901d 100644 --- a/AllTests.c +++ b/AllTests.c @@ -2,8 +2,8 @@ #include "CuTest.h" -CuSuite* CuGetSuite(); -CuSuite* CuStringGetSuite(); +CuSuite* CuGetSuite(void); +CuSuite* CuStringGetSuite(void); int RunAllTests(void) { diff --git a/CuTestTest.c b/CuTestTest.c index 547f119..8e90768 100644 --- a/CuTestTest.c +++ b/CuTestTest.c @@ -213,7 +213,7 @@ void TestCuAssertPtrEquals_Failure(CuTest* tc) CuTestInit(&tc2, "MyTest", TestPasses); /* test failing case */ - sprintf(expected_message, "expected pointer <0x%p> but was <0x%p>", nullPtr, &x); + sprintf(expected_message, "expected pointer <0x%p> but was <0x%p>", (void*)nullPtr, (void*)&x); CuAssertPtrEquals(&tc2, NULL, &x); CuAssertTrue(tc, tc2.failed); CompareAsserts(tc, "CuAssertPtrEquals failed", expected_message, tc2.message);