summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorAlessandro Gatti <a.gatti@frob.it>2024-11-18 22:04:14 +0100
committerDamien George <damien@micropython.org>2024-12-10 12:04:14 +1100
commit2a8f6047ff5c94bba7ace738a14b572cc8553251 (patch)
treebc8d15659745054bef458f5904519798e7250e50 /py
parent5784714f734caf3713ff880ffe100bbbec59216e (diff)
py/emitglue: Fix clear cache builtin warning on Clang for AArch32.
This commit fixes a warning occurring on Clang when calling `__builtin___clear_cache` with non-void pointers for its start and end memory area locations. The code now uses a char pointer for the end location, and it still builds without warnings on GCC. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'py')
-rw-r--r--py/emitglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/emitglue.c b/py/emitglue.c
index 444e48047..27cbb349e 100644
--- a/py/emitglue.c
+++ b/py/emitglue.c
@@ -115,7 +115,7 @@ void mp_emit_glue_assign_native(mp_raw_code_t *rc, mp_raw_code_kind_t kind, cons
#endif
#elif MICROPY_EMIT_ARM
#if (defined(__linux__) && defined(__GNUC__)) || __ARM_ARCH == 7
- __builtin___clear_cache((void *)fun_data, (uint8_t *)fun_data + fun_len);
+ __builtin___clear_cache((void *)fun_data, (char *)fun_data + fun_len);
#elif defined(__arm__)
// Flush I-cache and D-cache.
asm volatile (