From b2abd7dde9ff6b40ae297887ce93336ac42a3ee1 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 29 Oct 2020 15:24:45 -0600 Subject: [PATCH] Disable -Warray-bounds diagnostic due to false positive from gcc-11 --- ucx.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ucx.spec b/ucx.spec index 1173280..9bcee2d 100644 --- a/ucx.spec +++ b/ucx.spec @@ -16,7 +16,7 @@ Name: ucx Version: 1.8.1 -Release: 3%{?dist} +Release: 4%{?dist} Summary: UCX is a communication library implementing high-performance messaging License: BSD @@ -91,6 +91,9 @@ Provides header files and examples for developing with UCX. %patch -p1 %build +# gcc-11 emits a diagnostic for some fishy casting. The code is probably OK. +# Disable the diagnostic for now +export CFLAGS="$RPM_OPT_FLAGS -Wno-array-bounds" %define _with_arg() %{expand:%%{?with_%{1}:--with-%{2}}%%{!?with_%{1}:--without-%{2}}} %define _enable_arg() %{expand:%%{?with_%{1}:--enable-%{2}}%%{!?with_%{1}:--disable-%{2}}} %configure --disable-optimizations \ @@ -289,6 +292,9 @@ process to map the memory of another process into its virtual address space. %changelog +* Thu Oct 29 2020 Jeff Law 1.8.1-4 +- Disable -Warray-bounds diagnostics for gcc-11 + * Wed Jul 29 2020 Fedora Release Engineering - 1.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild