diff options
Diffstat (limited to 'src')
-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 \ |