Commit f70ffbb53218e6d26d9ef6babd8c106b105db18b

Stefan Sperling 2020-02-22T12:44:08

disable compiler warnings in release builds because -Werror is bad for ports sthen@ suggested to drop -Werror; I think we don't need any -W in release mode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/Makefile.inc b/Makefile.inc
index bb6ed69..cbc7171 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1,5 +1,4 @@
 CPPFLAGS += -DGOT_LIBEXECDIR=${LIBEXECDIR} -DGOT_VERSION=${GOT_VERSION}
-CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
 #CFLAGS += -DGOT_PACK_NO_MMAP
 #CFLAGS += -DGOT_NO_OBJ_CACHE
 #CFLAGS += -DGOT_OBJ_CACHE_DEBUG
@@ -10,6 +9,7 @@ BINDIR ?= ${PREFIX}/bin
 LIBEXECDIR ?= ${PREFIX}/libexec
 MANDIR ?= ${PREFIX}/man/man
 .else
+CFLAGS += -Werror -Wall -Wstrict-prototypes -Wunused-variable
 PREFIX ?= ${HOME}
 BINDIR ?= ${PREFIX}/bin
 LIBEXECDIR ?= ${BINDIR}