Skip to content

Commit bffb8c4

Browse files
author
Jani Taskinen
committed
MFH: fix warnings
1 parent d621632 commit bffb8c4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/date/lib/timelib.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
#define TIMELIB_LLABS(y) (y < 0 ? (y * -1) : y)
3232

33-
timelib_time* timelib_time_ctor()
33+
timelib_time* timelib_time_ctor(void)
3434
{
3535
timelib_time *t;
3636
t = calloc(1, sizeof(timelib_time));
@@ -55,7 +55,7 @@ void timelib_time_dtor(timelib_time* t)
5555
TIMELIB_TIME_FREE(t);
5656
}
5757

58-
timelib_time_offset* timelib_time_offset_ctor()
58+
timelib_time_offset* timelib_time_offset_ctor(void)
5959
{
6060
timelib_time_offset *t;
6161
t = calloc(1, sizeof(timelib_time_offset));

ext/date/lib/timelib.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ const timelib_tzdb *timelib_builtin_db(void);
7979
const timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int *count);
8080

8181
/* From timelib.c */
82-
timelib_tzinfo* timelib_tzinfo_ctor();
82+
timelib_tzinfo* timelib_tzinfo_ctor(char *name);
8383
void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr);
8484
void timelib_time_tz_name_update(timelib_time* tm, char* tz_name);
8585
void timelib_tzinfo_dtor(timelib_tzinfo *tz);
8686
timelib_tzinfo* timelib_tzinfo_clone(timelib_tzinfo *tz);
8787

88-
timelib_time* timelib_time_ctor();
88+
timelib_time* timelib_time_ctor(void);
8989
void timelib_time_set_option(timelib_time* tm, int option, void* option_value);
9090
void timelib_time_dtor(timelib_time* t);
9191

92-
timelib_time_offset* timelib_time_offset_ctor();
92+
timelib_time_offset* timelib_time_offset_ctor(void);
9393
void timelib_time_offset_dtor(timelib_time_offset* t);
9494

9595
void timelib_error_container_dtor(timelib_error_container *errors);

0 commit comments

Comments
 (0)