commit 7184160f0806eb8be1a4944e2b3b1c5b86d9e995
parent f3171b749cfd1a80742ee58dbc77d29c901639e5
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Sat, 6 May 2023 14:34:43 +0200
Add sanitizer compile options
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -9,7 +9,8 @@ CPPFLAGS = -DVERSION=\"${VERSION}\"
CFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
-Wno-unused-parameter -O3 ${CPPFLAGS}
DBGFLAGS = -std=c99 -pthread -pedantic -Wall -Wextra \
- -Wno-unused-parameter -g ${CPPFLAGS}
+ -Wno-unused-parameter -Wno-unused-function -g3 \
+ -fsanitize=address -fsanitize=undefined -${CPPFLAGS}
CC = cc