From e11298e56be560de64bbccfe74fef7ff85c623d1 Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Mon, 8 Aug 2022 21:25:55 +0200 Subject: stdio.h; gcc $(WARNINGS) --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7bfb97b..cd64db1 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,12 @@ LD = $(ARCH)ld OBJDUMP = $(ARCH)objcopy OBJCOPY = $(ARCH)objdump -CFLAGS = -Wall -Werror -Wno-error=infinite-recursion -O -fno-omit-frame-pointer +WARNINGS := -Wall -Werror -Wextra -pedantic -Wshadow -Wpointer-arith \ + -Wcast-align -Wwrite-strings -Wmissing-prototypes \ + -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline \ + -Wno-long-long -Wconversion -Wstrict-prototypes + +CFLAGS = $(WARNINGS) -Wno-error=infinite-recursion -O -fno-omit-frame-pointer # -mgeneral-regs-only disables SIMD instructions CFLAGS += -MD -O3 -mgeneral-regs-only -mcmodel=large CFLAGS += -ffreestanding -fno-common -nostdlib -- cgit v1.2.3