summaryrefslogtreecommitdiff
path: root/py/argcheck.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-06-20 17:52:13 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-06-20 17:52:13 -0700
commit03a7069d60e50748e8c7653788ceece81c197a3b (patch)
treeec24234bdd06866e8958b64ab1203724260de4a3 /py/argcheck.c
parent30ee7019ca651bce1fe966c1089fe977d51dc92b (diff)
py: Change asm form to make minimal port happy.
Diffstat (limited to 'py/argcheck.c')
-rw-r--r--py/argcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/argcheck.c b/py/argcheck.c
index d639d08fb..28bce8a86 100644
--- a/py/argcheck.c
+++ b/py/argcheck.c
@@ -33,7 +33,7 @@
void mp_arg_check_num(size_t n_args, size_t n_kw, size_t n_args_min, size_t n_args_max, bool takes_kw) {
// NOTE(tannewt): This prevents this function from being optimized away.
// Without it, functions can crash when reading invalid args.
- asm ("");
+ __asm volatile ("");
// TODO maybe take the function name as an argument so we can print nicer error messages
if (n_kw && !takes_kw) {