From 59dd4d68c95142ceca1539491b0017985bd96357 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 6 Feb 2023 12:03:16 -0800 Subject: add compiler flags for warnings for bad practice; snake game now gets harder the longer you go --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b4f7654..8a8265b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,6 @@ -CFLAGS=-I. -pthread -Wall -Wextra -std=c99 -Wpedantic +CFLAGS=-I. -pthread -Wall -Wextra -Wpedantic -std=c99 -march=native -O3 +CFLAGS+= -Wshadow -Wstrict-prototypes -Wundef -Wpointer-arith -Wcast-align -Wstrict-overflow=5 -Wswitch-default +CFLAGS+= -Wunreachable-code -Wswitch-enum -Wformat=2 PREFIX ?= /usr BINDIR ?= ${PREFIX}/bin MANDIR = ${PREFIX}/share/man/ -- cgit v1.3.1