diff options
| author | Damien George | 2015-01-12 22:34:38 +0000 |
|---|---|---|
| committer | Damien George | 2015-01-12 22:34:38 +0000 |
| commit | abc1959e2c8170cc37d2e1fa1654f1266479d666 (patch) | |
| tree | 507831aceb537390763bb8886634c43a4dad79ad /unix | |
| parent | cd3420740909b3b6a2140b613b591b7556b417a2 (diff) | |
py, unix, lib: Allow to compile with -Wold-style-definition.
Diffstat (limited to 'unix')
| -rw-r--r-- | unix/modtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/modtime.c b/unix/modtime.c index 61b5e0dd5..c53e0dc38 100644 --- a/unix/modtime.c +++ b/unix/modtime.c @@ -57,7 +57,7 @@ void msec_sleep_tv(struct timeval *tv) { #error Unsupported clock() implementation #endif -STATIC mp_obj_t mod_time_time() { +STATIC mp_obj_t mod_time_time(void) { #if MICROPY_PY_BUILTINS_FLOAT struct timeval tv; gettimeofday(&tv, NULL); @@ -70,7 +70,7 @@ STATIC mp_obj_t mod_time_time() { STATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_time_time_obj, mod_time_time); // Note: this is deprecated since CPy3.3, but pystone still uses it. -STATIC mp_obj_t mod_time_clock() { +STATIC mp_obj_t mod_time_clock(void) { #if MICROPY_PY_BUILTINS_FLOAT // float cannot represent full range of int32 precisely, so we pre-divide // int to reduce resolution, and then actually do float division hoping |
