Fix inline vs static inline issue for gcc-10
This commit is contained in:
parent
6683eb5b34
commit
c50b8fd1ac
12
gcc10.patch
Normal file
12
gcc10.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Nrup a/libcomps/src/comps_objmradix.c b/libcomps/src/comps_objmradix.c
|
||||||
|
--- a/libcomps/src/comps_objmradix.c 2019-11-25 04:21:01.000000000 -0700
|
||||||
|
+++ b/libcomps/src/comps_objmradix.c 2019-12-02 11:08:54.738477530 -0700
|
||||||
|
@@ -605,7 +605,7 @@ inline void comps_objmrtree_pair_destroy
|
||||||
|
free(pair);
|
||||||
|
}
|
||||||
|
|
||||||
|
-inline COMPS_HSList* __comps_objmrtree_all(COMPS_ObjMRTree * rt, char keyvalpair) {
|
||||||
|
+static inline COMPS_HSList* __comps_objmrtree_all(COMPS_ObjMRTree * rt, char keyvalpair) {
|
||||||
|
COMPS_HSList *to_process, *ret;
|
||||||
|
COMPS_HSListItem *hsit, *oldit;
|
||||||
|
size_t x;
|
@ -14,12 +14,13 @@
|
|||||||
|
|
||||||
Name: libcomps
|
Name: libcomps
|
||||||
Version: 0.1.14
|
Version: 0.1.14
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Comps XML file manipulation library
|
Summary: Comps XML file manipulation library
|
||||||
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: https://github.com/rpm-software-management/libcomps
|
URL: https://github.com/rpm-software-management/libcomps
|
||||||
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: gcc10.patch
|
||||||
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -192,6 +193,9 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Dec 14 2019 Jeff Law <law@redhat.com> - 0.1.14-2
|
||||||
|
- Fix inline vs static inline issue for gcc-10
|
||||||
|
|
||||||
* Fri Nov 29 2019 Ales Matej <amatej@redhat.com> - 0.1.14-1
|
* Fri Nov 29 2019 Ales Matej <amatej@redhat.com> - 0.1.14-1
|
||||||
- Update to 0.1.14
|
- Update to 0.1.14
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user