From b0da191bee873d51590664e261a767a06391df13 Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 7 Jun 2022 11:54:54 -0400 Subject: [PATCH] makefile: disable null pointer checks Signed-off-by: Eric Callahan --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3d6215a..10615726 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ cc-option=$(shell if test -z "`$(1) $(2) -S -o /dev/null -xc /dev/null 2>&1`" \ CFLAGS := -I$(OUT) -Isrc -I$(OUT)board-generic/ -std=gnu11 -O2 -MD \ -Wall -Wold-style-definition $(call cc-option,$(CC),-Wtype-limits,) \ - -ffunction-sections -fdata-sections + -ffunction-sections -fdata-sections -fno-delete-null-pointer-checks CFLAGS += -flto -fwhole-program -fno-use-linker-plugin -ggdb3 OBJS_klipper.elf = $(patsubst %.c, $(OUT)src/%.o,$(src-y))