summaryrefslogtreecommitdiff
path: root/src/lisp/ao_lisp_save.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-01-10 14:47:03 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:52 -0800
commit9c85c9d60334edc2af65a47124873e94e0ff1e9c (patch)
treecd509b9734efa7f8dc187bc72e0c5da63d1d27fc /src/lisp/ao_lisp_save.c
parent399ba0a62422f71ff9669ba03b6a058bb2981c27 (diff)
altos/lisp: Add casts to keep the latest GCC from whinging
Something about alignment issues. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lisp/ao_lisp_save.c')
-rw-r--r--src/lisp/ao_lisp_save.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lisp/ao_lisp_save.c b/src/lisp/ao_lisp_save.c
index e6e8b65e..4f850fb9 100644
--- a/src/lisp/ao_lisp_save.c
+++ b/src/lisp/ao_lisp_save.c
@@ -21,7 +21,7 @@ ao_lisp_save(struct ao_lisp_cons *cons)
return AO_LISP_NIL;
#ifdef AO_LISP_SAVE
- struct ao_lisp_os_save *os = (struct ao_lisp_os_save *) &ao_lisp_pool[AO_LISP_POOL];
+ struct ao_lisp_os_save *os = (struct ao_lisp_os_save *) (void *) &ao_lisp_pool[AO_LISP_POOL];
ao_lisp_collect(AO_LISP_COLLECT_FULL);
os->atoms = ao_lisp_atom_poly(ao_lisp_atoms);
@@ -43,7 +43,7 @@ ao_lisp_restore(struct ao_lisp_cons *cons)
#ifdef AO_LISP_SAVE
struct ao_lisp_os_save save;
- struct ao_lisp_os_save *os = (struct ao_lisp_os_save *) &ao_lisp_pool[AO_LISP_POOL];
+ struct ao_lisp_os_save *os = (struct ao_lisp_os_save *) (void *) &ao_lisp_pool[AO_LISP_POOL];
if (!ao_lisp_os_restore_save(&save, AO_LISP_POOL))
return ao_lisp_error(AO_LISP_INVALID, "header restore failed");