@@ -41,7 +41,7 @@ typedef void (*RunWithDataFunc)(void*);
4141struct ctest {
4242 const char * ssname ; // suite name
4343 const char * ttname ; // test name
44- void (* run )();
44+ void (* run )(void );
4545 int skip ;
4646
4747 void * data ;
@@ -159,9 +159,9 @@ struct ctest {
159159 void WEAK sname##_teardown(struct sname##_data* data)
160160
161161#define __CTEST_INTERNAL (sname , tname , _skip ) \
162- void __FNAME(sname, tname)(); \
162+ void __FNAME(sname, tname)(void ); \
163163 __CTEST_STRUCT(sname, tname, _skip, NULL, NULL, NULL) \
164- void __FNAME(sname, tname)()
164+ void __FNAME(sname, tname)(void )
165165
166166#ifdef __CTEST_APPLE
167167#define SETUP_FNAME (sname ) NULL
@@ -366,7 +366,7 @@ void __ctest_addTest(struct ctest *test)
366366#ifndef __CTEST_MSVC
367367/* Add all tests to linked list automatically.
368368 */
369- static void __ctest_linkTests ()
369+ static void __ctest_linkTests (void )
370370{
371371 struct ctest * * test ;
372372 struct ctest * * ctest_begin = (struct ctest * * )__PNAME (suite , test );
@@ -401,7 +401,7 @@ static void __ctest_linkTests()
401401 __ctest_head_p = ctest_begin ;
402402}
403403#else //for msvc
404- static void __ctest_linkTests ()
404+ static void __ctest_linkTests (void )
405405{
406406 struct ctest * * ctest_start = __ctest_head_p ;
407407 struct ctest * * test ;
@@ -450,7 +450,7 @@ static void msg_start(const char* color, const char* title) {
450450 print_errormsg (" %s: " , title );
451451}
452452
453- static void msg_end () {
453+ static void msg_end (void ) {
454454 if (color_output ) {
455455 print_errormsg (ANSI_NORMAL );
456456 }
@@ -634,7 +634,7 @@ static int suite_test_filter(struct ctest* t) {
634634
635635
636636#ifndef __CTEST_NO_TIME
637- static uint64_t getCurrentTime () {
637+ static uint64_t getCurrentTime (void ) {
638638 struct timeval now ;
639639 gettimeofday (& now , NULL );
640640 uint64_t now64 = (uint64_t ) now .tv_sec ;
0 commit comments