mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-19 13:28:35 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user