diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-26 02:18:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-26 02:18:35 +0300 |
commit | 1d13723e0a42a770aa4d421c9786d1429ab8d125 (patch) | |
tree | 71fe0da6b5af3158517a5004a161dbfc9c5fa3d0 /src/Makefile.am | |
parent | 19314ec1a0b4aaaa3d80e0e31167564d26ebbe46 (diff) | |
download | manaplus-1d13723e0a42a770aa4d421c9786d1429ab8d125.tar.gz manaplus-1d13723e0a42a770aa4d421c9786d1429ab8d125.tar.bz2 manaplus-1d13723e0a42a770aa4d421c9786d1429ab8d125.tar.xz manaplus-1d13723e0a42a770aa4d421c9786d1429ab8d125.zip |
Add configure flag --enable-werror
Enable it by default in some build scripts.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 8 |
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 \ |