diff options
| author | Preston Pan <preston@nullring.xyz> | 2023-02-06 12:03:16 -0800 |
|---|---|---|
| committer | Preston Pan <preston@nullring.xyz> | 2023-02-06 12:03:16 -0800 |
| commit | 59dd4d68c95142ceca1539491b0017985bd96357 (patch) | |
| tree | 335f6e24c0303fb04fb6d8e55512bffa5e41e1bc /Makefile | |
| parent | 60992c31734d233d0cc8c3e8942fa1c173a67fde (diff) | |
add compiler flags for warnings for bad practice; snake game now gets harder the longer you go
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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/ |
