summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-16 14:12:59 -0800
committerKeith Packard <keithp@keithp.com>2016-11-17 22:18:39 -0800
commit2b44fb5002c3e498ba66b60d763c2ac3fef3283e (patch)
tree650e22b3d9ed77549de88a3859f85b21a3075fa0 /src/test
parentd68d89a2b8d2c1ebde355171f99e5205dbd0ea43 (diff)
altos/lisp: Eliminate compiler warning about array bounds at -O3
Using ao_lisp_pool - 4 caused the compiler to whinge about computing an address outside the bounds of the array. Sigh. Restructure the code to do the adjustment-by-4 in the integer computations instead of the pointer ones. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/Makefile b/src/test/Makefile
index fae46ac8..0eaa9421 100644
--- a/src/test/Makefile
+++ b/src/test/Makefile
@@ -10,7 +10,7 @@ INCS=ao_kalman.h ao_ms5607.h ao_log.h ao_data.h altitude-pa.h altitude.h ao_quat
KALMAN=make-kalman
-CFLAGS=-I.. -I. -I../kernel -I../drivers -I../micropeak -I../product -I../lisp -O3 -g -Wall -DAO_LISP_TEST -no-pie
+CFLAGS=-I.. -I. -I../kernel -I../drivers -I../micropeak -I../product -I../lisp -O0 -g -Wall -DAO_LISP_TEST -no-pie
all: $(PROGS) ao_aprs_data.wav