Add patch to fix -fpermissive warning
This commit is contained in:
parent
fe6cc4caba
commit
3f8c02559f
27
0001-util-Fix-fpermissive-warning.patch
Normal file
27
0001-util-Fix-fpermissive-warning.patch
Normal file
@ -0,0 +1,27 @@
|
||||
From 724b7405064b37410e67cd309e2862bc22d95fde Mon Sep 17 00:00:00 2001
|
||||
From: Colin Walters <walters@verbum.org>
|
||||
Date: Tue, 1 Nov 2022 16:06:20 -0400
|
||||
Subject: [PATCH] util: Fix `-fpermissive` warning
|
||||
|
||||
This seems to only be happening with newer gcc (or something
|
||||
in the glib2 headers changed?).
|
||||
---
|
||||
src/libpriv/rpmostree-util.cxx | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/libpriv/rpmostree-util.cxx b/src/libpriv/rpmostree-util.cxx
|
||||
index 623475fe..438511a7 100644
|
||||
--- a/src/libpriv/rpmostree-util.cxx
|
||||
+++ b/src/libpriv/rpmostree-util.cxx
|
||||
@@ -436,7 +436,7 @@ rpmostree_str_ptrarray_contains (GPtrArray *strs, const char *str)
|
||||
guint n = strs->len;
|
||||
for (guint i = 0; i < n; i++)
|
||||
{
|
||||
- if (g_str_equal (str, strs->pdata[i]))
|
||||
+ if (g_str_equal (str, (const char*)strs->pdata[i]))
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
--
|
||||
2.38.1
|
||||
|
@ -11,6 +11,8 @@ URL: https://github.com/coreos/rpm-ostree
|
||||
# in the upstream git. It also contains vendored Rust sources.
|
||||
Source0: https://github.com/coreos/rpm-ostree/releases/download/v%{version}/rpm-ostree-%{version}.tar.xz
|
||||
|
||||
Patch0: 0001-util-Fix-fpermissive-warning.patch
|
||||
|
||||
ExclusiveArch: %{rust_arches}
|
||||
|
||||
BuildRequires: make
|
||||
|
Loading…
Reference in New Issue
Block a user