From 190fc9bf170daf553a1aab755149ee9fbc43012b Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 27 Sep 2017 20:00:44 -0700 Subject: [PATCH] Deny warnings with -Wno instead of commenting them out. Ease of use change. I usually replace -W with -Weverything and silencing these warnings involves adding a bunch of -Wno. Also sorted alphabetically. --- src/Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/Makefile b/src/Makefile index b35222691..bb46dbb64 100644 --- a/src/Makefile +++ b/src/Makefile @@ -152,11 +152,14 @@ CFLAGS += -Wwrite-strings # the following compiler options produce warnings that should be fixed at some time -#CFLAGS += -Wsizeof-pointer-memaccess -#CFLAGS += -Wcast-align -#CFLAGS += -Wcast-qual -#CFLAGS += -Wsign-conversion -#CFLAGS += -pedantic +CFLAGS += -Wno-cast-align +CFLAGS += -Wno-cast-qual +CFLAGS += -Wno-conversion +CFLAGS += -Wno-padded +CFLAGS += -Wno-pedantic +CFLAGS += -Wno-sizeof-pointer-memaccess +#CFLAGS += -Wno-reserved-id-macro //clang specific +#CFLAGS += -Wno-used-but-marked-unused // ^^ endif # default linux and freebsd thread stack size is 2MB