[Tarantool-patches] [PATCH v1 3/4] build: add Werror flag to CentOS7 packages build

Alexander V. Tikhonov avtikhon at tarantool.org
Wed Oct 14 19:35:45 MSK 2020


To check warnings on the default compiler on CentOS7 needed to enable
Werror flag. Currently not all builds with different OS used for
packaging ready for it, so only for CentOS 7 enabled it.

Part of #4941
---

Github: https://github.com/tarantool/tarantool/tree/avtikhon/gh-4941-gcc-old
Issue: https://github.com/tarantool/tarantool/issues/4941

 rpm/tarantool.spec | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rpm/tarantool.spec b/rpm/tarantool.spec
index eedc0312c..a9c625eae 100644
--- a/rpm/tarantool.spec
+++ b/rpm/tarantool.spec
@@ -159,6 +159,9 @@ C and Lua/C modules.
          -DWITH_SYSTEMD:BOOL=ON \
          -DSYSTEMD_UNIT_DIR:PATH=%{_unitdir} \
          -DSYSTEMD_TMPFILES_DIR:PATH=%{_tmpfilesdir} \
+%endif
+%if 0%{?rhel} == 7
+         -DENABLE_WERROR=ON \
 %endif
          -DENABLE_DIST:BOOL=ON
 make %{?_smp_mflags}
-- 
2.25.1



More information about the Tarantool-patches mailing list