summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-01-12 22:45:35 +0000
committerDamien George <damien.p.george@gmail.com>2015-01-12 22:45:35 +0000
commitbbf5cd01e3587f39600d24fb030f09a4c92bcb46 (patch)
tree5ce26276af17a4c2f1e82f8d7678fd6de0998c3e /py
parent30d8a82220d8dd9b3b75f7476efcbe27336cf47b (diff)
downloadmicropython-bbf5cd01e3587f39600d24fb030f09a4c92bcb46.tar.gz
micropython-bbf5cd01e3587f39600d24fb030f09a4c92bcb46.zip
py: Allow to compile with -Wstrict-prototypes.
Diffstat (limited to 'py')
-rw-r--r--py/objfun.c6
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);