Skip to content

Commit a233fb8

Browse files
committed
Adds -Wextra, '-Wpedantic' and -fsanitize=address
`-fsanitize=address` checks memory violation/out of bounds access, leaking memory, etc. during runtime.
1 parent cce155c commit a233fb8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ OS=LINUX
2424
#OS=CYGWIN
2525

2626
CC=gcc
27-
CFLAGS=-Wall -Wshadow -Wpointer-arith -Wwrite-strings -D ${OS}
27+
CFLAGS=-Wall -Wextra -Wpedantic -Wshadow -Wpointer-arith -Wwrite-strings \
28+
-D ${OS} \
29+
-fsanitize=address
2830

2931
ifeq (${OS}, SOLARIS)
3032
LDFLAGS=-lnsl -lsocket -lresolv

0 commit comments

Comments
 (0)