diff options
author | Allen Winter <allen.winter@kdab.com> | 2022-11-20 08:44:32 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2022-11-20 08:44:32 -0500 |
commit | 708139306fb40db979ead95ae2fd4f366ca221ae (patch) | |
tree | 098c6d671bc0dad185c1cf3beb63560a37be792d | |
parent | ea89a35b099a841e3ad50400c253401662b7df4b (diff) | |
download | libical-git-708139306fb40db979ead95ae2fd4f366ca221ae.tar.gz |
various - fix strict-prototype warnings
-rw-r--r-- | src/libical/caldate.c | 6 | ||||
-rw-r--r-- | src/test/regression-utils.c | 4 | ||||
-rw-r--r-- | src/test/regression.c | 7 | ||||
-rw-r--r-- | src/test/test-malloc.c | 2 | ||||
-rw-r--r-- | src/test/test-malloc.h | 2 |
5 files changed, 10 insertions, 11 deletions
diff --git a/src/libical/caldate.c b/src/libical/caldate.c index 5f7a9df4..a1de590e 100644 --- a/src/libical/caldate.c +++ b/src/libical/caldate.c @@ -190,8 +190,7 @@ double juldat( struct ut_instant * date ) return( date->j_date ); } /* end of double juldat( date ) */ -void caldat_int( date ) -struct ut_instant_int * date; +void caldat_int( struct ut_instant_int * date ) { long jd; long ka; @@ -238,8 +237,7 @@ struct ut_instant_int * date; + date->day - 30; } -void juldat_int( date ) -struct ut_instant_int * date; +void juldat_int( struct ut_instant_int * date ) { long iy0, im0; long ia, ib; diff --git a/src/test/regression-utils.c b/src/test/regression-utils.c index 3536f0ad..02e5eb86 100644 --- a/src/test/regression-utils.c +++ b/src/test/regression-utils.c @@ -201,8 +201,8 @@ int test_end(void) * Bring all memory that is allocated as side effect into a stable state, so we can calculate * stable memory allocation statistics. */ -static void cleanup_nondeterministic_memory() { - +static void cleanup_nondeterministic_memory(void) +{ // icalerrno_return() allocates a buffer on it's first use per thread. Let's allocate it // now, so it doesn't disturb our test statistics. icalerrno_return(); diff --git a/src/test/regression.c b/src/test/regression.c index 8c4c5d84..014055c7 100644 --- a/src/test/regression.c +++ b/src/test/regression.c @@ -1259,7 +1259,7 @@ void test_recur(void) /* test_increment();*/ } -void test_recur_encode_by_day() +void test_recur_encode_by_day(void) { struct icalrecurrencetype rt; int ii; @@ -1305,7 +1305,7 @@ void test_recur_encode_by_day() } } -void test_recur_encode_by_month() +void test_recur_encode_by_month(void) { struct icalrecurrencetype rt; int ii, jj; @@ -2757,7 +2757,8 @@ static int test_juldat_caldat_instance(long year, int month, int day) { * output of the icaltime_day_of_week, icaltime_start_doy_week and icaltime_week_number functions * which are based on the functions to be tested. */ -void test_juldat_caldat() { +void test_juldat_caldat(void) +{ int i; int failed = 0; diff --git a/src/test/test-malloc.c b/src/test/test-malloc.c index 6a29d211..f9b3cedf 100644 --- a/src/test/test-malloc.c +++ b/src/test/test-malloc.c @@ -159,7 +159,7 @@ void test_free(void *p) { global_testmalloc_statistics.blocks_allocated--; } -void testmalloc_reset() { +void testmalloc_reset(void) { memset(&global_testmalloc_statistics, 0, sizeof(global_testmalloc_statistics)); global_testmalloc_remaining_attempts = -1; } diff --git a/src/test/test-malloc.h b/src/test/test-malloc.h index 636310ac..84232426 100644 --- a/src/test/test-malloc.h +++ b/src/test/test-malloc.h @@ -46,7 +46,7 @@ void test_free(void *p); /** Resets the memory management statistics and sets the number of successful * allocations limit to infinite. */ -void testmalloc_reset(); +void testmalloc_reset(void); /** Sets the maximum number of malloc or realloc attempts that will succeed. If * the number is negative, no limit will be applied. |