From 30c0fed288ef280b27ff49912da03be6eaf90ca7 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 4 May 2013 17:27:11 -0700 Subject: [PATCH] make this a little more compatible with c99 --- AllTests.c | 4 ++-- CuTestTest.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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);