From 027333e56aeea20c486702ecfb9571ca45fd14f6 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 19 Jul 2014 17:44:49 +0200
Subject: Fix some compiler warnings
`-Weverything' seems to have found a few problems.
Also enabled clang sanitizers by default.
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
(limited to 'Makefile')
diff --git a/Makefile b/Makefile
index 59be4bf..55b236a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@ SHELL = /bin/sh
CC = clang
# -Wunused-function is pretty annoying here, as everything is static and not
# all parts of common.c are used in all the executables
-CFLAGS = -ggdb -Wall -Wextra -std=c99 -Wno-unused-function
+CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-function \
+ -ggdb -fsanitize=address,undefined
# -lpthread is only there for debugging (gdb & errno)
LDFLAGS = `pkg-config --libs libssl` -lpthread
--
cgit v1.2.3-70-g09d2