!15 [sync] PR-13: Backport a patch for fixing a function-declaration-without-prototype issue

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-12-12 09:27:17 +00:00 committed by Gitee
commit 175f42f72b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -3,12 +3,15 @@
Name: appstream Name: appstream
Version: 0.16.1 Version: 0.16.1
Release: 1 Release: 2
Summary: Utilities to generate, maintain and access the AppStream database Summary: Utilities to generate, maintain and access the AppStream database
License: GPLv2+ and LGPLv2+ License: GPLv2+ and LGPLv2+
URL: https://github.com/ximion/appstream URL: https://github.com/ximion/appstream
Source0: https://github.com/ximion/appstream/archive/refs/tags/v%{version}.tar.gz Source0: https://github.com/ximion/appstream/archive/refs/tags/v%{version}.tar.gz
# https://github.com/ximion/appstream/pull/546/
Patch0: backport-fix-a-function-declaration-without-prototype-issue.patch
BuildRequires: cmake meson gettext gperf gtk-doc intltool itstool BuildRequires: cmake meson gettext gperf gtk-doc intltool itstool
BuildRequires: libstemmer-devel sed BuildRequires: libstemmer-devel sed
BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0)
@ -182,6 +185,9 @@ mv %{buildroot}%{_datadir}/metainfo/*.xml \
%{_libdir}/libAppStreamQt.so %{_libdir}/libAppStreamQt.so
%changelog %changelog
* Wed Dec 11 2024 jchzhou <zhoujiacheng@iscas.ac.cn> - 0.16.1-2
- Backport a patch for fixing a function declaration without prototype issue
* Mon Oct 16 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.16.1-1 * Mon Oct 16 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.16.1-1
- Upgrade to 0.16.1 - Upgrade to 0.16.1

View File

@ -0,0 +1,26 @@
From 82dc772ab6d0beeccf5ae9156016f794ebe26663 Mon Sep 17 00:00:00 2001
From: Gleb Popov <6yearold@gmail.com>
Date: Tue, 31 Oct 2023 10:12:22 +0300
Subject: [PATCH] fix a function declaration without prototype issue
Tested-by: jchzhou <zhoujiacheng@iscas.ac.cn>
---
compose/asc-globals.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compose/asc-globals.c b/compose/asc-globals.c
index 314f75c..0bf221e 100644
--- a/compose/asc-globals.c
+++ b/compose/asc-globals.c
@@ -455,7 +455,7 @@ asc_globals_get_hint_tag_details (const gchar *tag)
* Returns: (transfer full): A list of valid hint tags. Free with %g_strfreev
*/
gchar**
-asc_globals_get_hint_tags ()
+asc_globals_get_hint_tags (void)
{
AscGlobalsPrivate *priv = asc_globals_get_priv ();
GHashTableIter iter;
--
2.47.1