Fix gcc13 compilation issue

Signed-off-by: Igor Ivanov <igori@nvidia.com>
This commit is contained in:
Igor Ivanov 2023-02-20 16:13:08 +00:00
parent 2c1485202c
commit 0b4e109fee
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,26 @@
From 87c8ac5b9d4a2cead9be46a993c734a33490bb95 Mon Sep 17 00:00:00 2001
From: Igor Ivanov <igori@nvidia.com>
Date: Mon, 20 Feb 2023 18:05:47 +0200
Subject: [PATCH] issue: 3373882 Fix compilation issue for gcc 13.0.1
Signed-off-by: Igor Ivanov <igori@nvidia.com>
---
config/m4/compiler.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/m4/compiler.m4 b/config/m4/compiler.m4
index 328d1bae..ec6340bd 100644
--- a/config/m4/compiler.m4
+++ b/config/m4/compiler.m4
@@ -143,7 +143,7 @@ case $CC in
-Wno-free-nonheap-object "
CXXFLAGS="$CXXFLAGS -Wshadow -Wall -Wextra -Werror -Wundef \
-ffunction-sections -fdata-sections -Wsequence-point -pipe -Winit-self -Wmissing-include-dirs \
- -Wno-free-nonheap-object "
+ -Wno-free-nonheap-object -Wno-overloaded-virtual "
;;
icc*|icpc*)
AC_MSG_RESULT([icc])
--
2.25.1

View File

@ -2,12 +2,13 @@
Name: libvma
Version: 9.8.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A library for boosting TCP and UDP traffic (over RDMA hardware)
License: GPLv2 or BSD
Url: https://github.com/Mellanox/libvma
Source0: https://github.com/Mellanox/libvma/archive/%{version}/%{name}-%{version}.tar.gz
Patch0: 0001-Fix-compilation-issue-for-gcc-13.0.1.patch
# libvma currently supports only the following architectures
ExclusiveArch: x86_64 ppc64le ppc64 aarch64
@ -99,6 +100,9 @@ rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/vma
%{_mandir}/man8/vma_stats.*
%changelog
* Mon Feb 20 2023 Igor Ivanov <igori@nvidia.com> 9.8.1-2
- Fix gcc13 compilation issue
* Mon Feb 20 2023 Igor Ivanov <igori@nvidia.com> 9.8.1-1
- Bump version to 9.8.1