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.
This commit is contained in:
toybuilder
2014-03-13 05:58:39 -07:00
parent 06c2a3f7a6
commit bb729bdc3e

View File

@ -28,7 +28,7 @@ void announceTestRun(unsigned int runNumber)
UNITY_OUTPUT_CHAR('\n'); 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); int result = UnityGetCommandLineOptions(argc, argv);
unsigned int r; unsigned int r;