summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-26 02:18:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-26 02:18:35 +0300
commit1d13723e0a42a770aa4d421c9786d1429ab8d125 (patch)
tree71fe0da6b5af3158517a5004a161dbfc9c5fa3d0 /src
parent19314ec1a0b4aaaa3d80e0e31167564d26ebbe46 (diff)
downloadmanaverse-1d13723e0a42a770aa4d421c9786d1429ab8d125.tar.gz
manaverse-1d13723e0a42a770aa4d421c9786d1429ab8d125.tar.bz2
manaverse-1d13723e0a42a770aa4d421c9786d1429ab8d125.tar.xz
manaverse-1d13723e0a42a770aa4d421c9786d1429ab8d125.zip
Add configure flag --enable-werror
Enable it by default in some build scripts.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index a28ed7985..d537e8f60 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -13,6 +13,11 @@ manaplus_CXXFLAGS = -DPKG_DATADIR=\""$(pkgdatadir)/"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-Wall
+if ENABLE_WERROR
+manaplus_CXXFLAGS += -Werror
+dyecmd_CXXFLAGS += -Werror
+endif
+
if ENABLE_PUGIXML
manaplus_CXXFLAGS += -DENABLE_PUGIXML
dyecmd_CXXFLAGS += -DENABLE_PUGIXML
@@ -1753,6 +1758,9 @@ manaplustests_CXXFLAGS = ${manaplus_CXXFLAGS} \
if USE_SDL2
manaplustests_CXXFLAGS += -DUSE_SDL2
endif
+if ENABLE_WERROR
+manaplustests_CXXFLAGS += -Werror
+endif
manaplustests_SOURCES = ${manaplus_SOURCES} \
enums/enums_unittest.cc \