@@ -41,7 +41,7 @@ typedef void (*RunWithDataFunc)(void*);
41
41
struct ctest {
42
42
const char * ssname ; // suite name
43
43
const char * ttname ; // test name
44
- void (* run )();
44
+ void (* run )(void );
45
45
int skip ;
46
46
47
47
void * data ;
@@ -159,9 +159,9 @@ struct ctest {
159
159
void WEAK sname##_teardown(struct sname##_data* data)
160
160
161
161
#define __CTEST_INTERNAL (sname , tname , _skip ) \
162
- void __FNAME(sname, tname)(); \
162
+ void __FNAME(sname, tname)(void ); \
163
163
__CTEST_STRUCT(sname, tname, _skip, NULL, NULL, NULL) \
164
- void __FNAME(sname, tname)()
164
+ void __FNAME(sname, tname)(void )
165
165
166
166
#ifdef __CTEST_APPLE
167
167
#define SETUP_FNAME (sname ) NULL
@@ -366,7 +366,7 @@ void __ctest_addTest(struct ctest *test)
366
366
#ifndef __CTEST_MSVC
367
367
/* Add all tests to linked list automatically.
368
368
*/
369
- static void __ctest_linkTests ()
369
+ static void __ctest_linkTests (void )
370
370
{
371
371
struct ctest * * test ;
372
372
struct ctest * * ctest_begin = (struct ctest * * )__PNAME (suite , test );
@@ -401,7 +401,7 @@ static void __ctest_linkTests()
401
401
__ctest_head_p = ctest_begin ;
402
402
}
403
403
#else //for msvc
404
- static void __ctest_linkTests ()
404
+ static void __ctest_linkTests (void )
405
405
{
406
406
struct ctest * * ctest_start = __ctest_head_p ;
407
407
struct ctest * * test ;
@@ -450,7 +450,7 @@ static void msg_start(const char* color, const char* title) {
450
450
print_errormsg (" %s: " , title );
451
451
}
452
452
453
- static void msg_end () {
453
+ static void msg_end (void ) {
454
454
if (color_output ) {
455
455
print_errormsg (ANSI_NORMAL );
456
456
}
@@ -634,7 +634,7 @@ static int suite_test_filter(struct ctest* t) {
634
634
635
635
636
636
#ifndef __CTEST_NO_TIME
637
- static uint64_t getCurrentTime () {
637
+ static uint64_t getCurrentTime (void ) {
638
638
struct timeval now ;
639
639
gettimeofday (& now , NULL );
640
640
uint64_t now64 = (uint64_t ) now .tv_sec ;
0 commit comments