From 8e82ecb3eddd992c1d351ad7489ae5cbdb761cea Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 8 Mar 2023 15:50:19 -0800 Subject: [PATCH] altos/draw: Build demos with -O3 to catch more bugs The compiler fails to do a lot of checks in -O0 Signed-off-by: Keith Packard --- src/draw/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/draw/Makefile b/src/draw/Makefile index 5f70a6ac..2696f300 100644 --- a/src/draw/Makefile +++ b/src/draw/Makefile @@ -125,7 +125,7 @@ LINE_TEST_OBJS=$(LINE_TEST_SRCS:.c=.o) TEST_LIBS=-lXrender -lXext -lX11 -lm -Wl,--gc-sections -CFLAGS=-O0 -g $(WARN_FLAGS) -DVALIDATE -I. +CFLAGS=-O3 -g $(WARN_FLAGS) -DVALIDATE -I. HEADERS=\ ao_draw.h \ -- 2.30.2