altos/draw: Build demos with -O3 to catch more bugs
authorKeith Packard <keithp@keithp.com>
Wed, 8 Mar 2023 23:50:19 +0000 (15:50 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 1 Feb 2024 01:50:19 +0000 (17:50 -0800)
The compiler fails to do a lot of checks in -O0

Signed-off-by: Keith Packard <keithp@keithp.com>
src/draw/Makefile

index 5f70a6acf04c425f52147b6739fe4b1665d49a75..2696f300d6d0dbf92a4cb5b637df32b6ad01a603 100644 (file)
@@ -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 \