diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-12 22:45:35 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-12 22:45:35 +0000 |
commit | bbf5cd01e3587f39600d24fb030f09a4c92bcb46 (patch) | |
tree | 5ce26276af17a4c2f1e82f8d7678fd6de0998c3e /py | |
parent | 30d8a82220d8dd9b3b75f7476efcbe27336cf47b (diff) | |
download | micropython-bbf5cd01e3587f39600d24fb030f09a4c92bcb46.tar.gz micropython-bbf5cd01e3587f39600d24fb030f09a4c92bcb46.zip |
py: Allow to compile with -Wstrict-prototypes.
Diffstat (limited to 'py')
-rw-r--r-- | py/objfun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/py/objfun.c b/py/objfun.c index 3f26915223..6ef12c9105 100644 --- a/py/objfun.c +++ b/py/objfun.c @@ -300,7 +300,7 @@ typedef struct _mp_obj_fun_native_t { // TODO add mp_map_t *globals } mp_obj_fun_native_t; -typedef mp_obj_t (*native_fun_0_t)(); +typedef mp_obj_t (*native_fun_0_t)(void); typedef mp_obj_t (*native_fun_1_t)(mp_obj_t); typedef mp_obj_t (*native_fun_2_t)(mp_obj_t, mp_obj_t); typedef mp_obj_t (*native_fun_3_t)(mp_obj_t, mp_obj_t, mp_obj_t); @@ -360,7 +360,7 @@ typedef struct _mp_obj_fun_viper_t { mp_uint_t type_sig; } mp_obj_fun_viper_t; -typedef mp_uint_t (*viper_fun_0_t)(); +typedef mp_uint_t (*viper_fun_0_t)(void); typedef mp_uint_t (*viper_fun_1_t)(mp_uint_t); typedef mp_uint_t (*viper_fun_2_t)(mp_uint_t, mp_uint_t); typedef mp_uint_t (*viper_fun_3_t)(mp_uint_t, mp_uint_t, mp_uint_t); @@ -417,7 +417,7 @@ typedef struct _mp_obj_fun_asm_t { void *fun_data; // GC must be able to trace this pointer } mp_obj_fun_asm_t; -typedef mp_uint_t (*inline_asm_fun_0_t)(); +typedef mp_uint_t (*inline_asm_fun_0_t)(void); typedef mp_uint_t (*inline_asm_fun_1_t)(mp_uint_t); typedef mp_uint_t (*inline_asm_fun_2_t)(mp_uint_t, mp_uint_t); typedef mp_uint_t (*inline_asm_fun_3_t)(mp_uint_t, mp_uint_t, mp_uint_t); |