summaryrefslogtreecommitdiff
path: root/src/scheme/ao_scheme_stack.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-12-12 17:59:26 -0800
committerKeith Packard <keithp@keithp.com>2017-12-12 18:09:11 -0800
commitca27d467198c556be483961a6ca3b8f97bbe96a6 (patch)
tree239b5ced573d834a1679ed4b2f725c6dfd77bf97 /src/scheme/ao_scheme_stack.c
parent4bfce37e7567d9c2a09ea4da8113e7639516ed6e (diff)
altos/scheme: More compiler warning cleanups
Make local funcs static. Don't mix decls and code.x Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/scheme/ao_scheme_stack.c')
-rw-r--r--src/scheme/ao_scheme_stack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scheme/ao_scheme_stack.c b/src/scheme/ao_scheme_stack.c
index d19dd6d6..e062a093 100644
--- a/src/scheme/ao_scheme_stack.c
+++ b/src/scheme/ao_scheme_stack.c
@@ -221,11 +221,12 @@ ao_scheme_stack_copy(struct ao_scheme_stack *old)
ao_poly
ao_scheme_stack_eval(void)
{
+ struct ao_scheme_cons *cons;
struct ao_scheme_stack *new = ao_scheme_stack_copy(ao_scheme_poly_stack(ao_scheme_v));
if (!new)
return AO_SCHEME_NIL;
- struct ao_scheme_cons *cons = ao_scheme_poly_cons(ao_scheme_stack->values);
+ cons = ao_scheme_poly_cons(ao_scheme_stack->values);
if (!cons || !cons->cdr)
return ao_scheme_error(AO_SCHEME_INVALID, "continuation requires a value");