[packages/protobuf] - disable -Werror because of -Werror=type-limits false positive in gcc 10.2
qboosh
qboosh at pld-linux.org
Wed Sep 9 20:26:14 CEST 2020
commit 76c3a6f6b2208f63f44681888dbd73fc4f163dd5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Sep 9 20:28:45 2020 +0200
- disable -Werror because of -Werror=type-limits false positive in gcc 10.2
protobuf.spec | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/protobuf.spec b/protobuf.spec
index 35b4ef5..203ab0a 100644
--- a/protobuf.spec
+++ b/protobuf.spec
@@ -13,7 +13,7 @@ Summary: Protocol Buffers - Google's data interchange format
Summary(pl.UTF-8): Protocol Buffers - format wymiany danych Google
Name: protobuf
Version: 3.13.0
-Release: 2
+Release: 3
License: BSD
Group: Libraries
#Source0Download: https://github.com/google/protobuf/releases
@@ -48,6 +48,7 @@ BuildRequires: ruby-devel
BuildRequires: ruby-rake
BuildRequires: ruby-rake-compiler
%endif
+BuildRequires: sed >= 4.0
BuildRequires: zlib-devel >= 1.2.0.4
Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -213,6 +214,15 @@ opisów buforów protokołowych (Protocol Buffers).
examples/add_person.py \
examples/list_people.py
+# gcc 10.2 false positive warning (with tag values >= 128):
+#
+# if (tag < 128) {
+# return *ptr == tag;
+# ~~~~~^~~~~~ error: comparison is always false due to limited range of data type [-Werror=type-limits]
+# } else {
+#
+%{__sed} -i -e 's/-Werror //' src/Makefile.am
+
%build
%{__libtoolize}
%{__aclocal} -I m4
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/protobuf.git/commitdiff/76c3a6f6b2208f63f44681888dbd73fc4f163dd5
More information about the pld-cvs-commit
mailing list