From bb729bdc3ed7440d9c286d7d7d66c2231579415b Mon Sep 17 00:00:00 2001 From: toybuilder Date: Thu, 13 Mar 2014 05:58:39 -0700 Subject: [PATCH] fix parameter type for runAllTests to match header At least in Microchip XC8 compiler, void (*runAllTests)(void) is treated as a different type from void (*runAllTests)(). Fix the definition of UnityMain to match the declaration by making the runAllTests's (void) parameter list explicit. --- extras/fixture/src/unity_fixture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/fixture/src/unity_fixture.c b/extras/fixture/src/unity_fixture.c index 74269fb..b7afd68 100644 --- a/extras/fixture/src/unity_fixture.c +++ b/extras/fixture/src/unity_fixture.c @@ -28,7 +28,7 @@ void announceTestRun(unsigned int runNumber) UNITY_OUTPUT_CHAR('\n'); } -int UnityMain(int argc, char* argv[], void (*runAllTests)()) +int UnityMain(int argc, char* argv[], void (*runAllTests)(void)) { int result = UnityGetCommandLineOptions(argc, argv); unsigned int r;