From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp60.i.mail.ru (smtp60.i.mail.ru [217.69.128.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 13AA444643A for ; Wed, 14 Oct 2020 19:35:59 +0300 (MSK) From: "Alexander V. Tikhonov" Date: Wed, 14 Oct 2020 19:35:45 +0300 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v1 3/4] build: add Werror flag to CentOS7 packages build List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kirill Yukhin Cc: tarantool-patches@dev.tarantool.org 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