fix FTBFS with GCC 14
This commit is contained in:
parent
e0ca07cfe1
commit
56b3f24430
25
0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch
Normal file
25
0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From b7beb19ad06e08b889a44694ff813ed5f6c96da4 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chris Liddell <chris.liddell@artifex.com>
|
||||||
|
Date: Thu, 14 Sep 2023 09:01:43 +0100
|
||||||
|
Subject: [PATCH] Bug 707130: Cast to void ** to avoid compiler warning
|
||||||
|
|
||||||
|
---
|
||||||
|
base/fapi_ft.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/base/fapi_ft.c b/base/fapi_ft.c
|
||||||
|
index ccd629757..fc185bfd7 100644
|
||||||
|
--- a/base/fapi_ft.c
|
||||||
|
+++ b/base/fapi_ft.c
|
||||||
|
@@ -1280,7 +1280,7 @@ gs_fapi_ft_get_scaled_font(gs_fapi_server * a_server, gs_fapi_font * a_font,
|
||||||
|
|
||||||
|
if (a_font->retrieve_tt_font != NULL) {
|
||||||
|
unsigned int ms;
|
||||||
|
- code = a_font->retrieve_tt_font(a_font, &own_font_data, &ms);
|
||||||
|
+ code = a_font->retrieve_tt_font(a_font, (void **)&own_font_data, &ms);
|
||||||
|
if (code == 0) {
|
||||||
|
data_owned = false;
|
||||||
|
open_args.memory_base = own_font_data;
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
@ -45,7 +45,7 @@
|
|||||||
Name: ghostscript
|
Name: ghostscript
|
||||||
Summary: Interpreter for PostScript language & PDF
|
Summary: Interpreter for PostScript language & PDF
|
||||||
Version: 10.02.1
|
Version: 10.02.1
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
|
|
||||||
License: AGPL-3.0-or-later
|
License: AGPL-3.0-or-later
|
||||||
|
|
||||||
@ -107,6 +107,8 @@ BuildRequires: make
|
|||||||
#Patch000: example000.patch
|
#Patch000: example000.patch
|
||||||
Patch: ghostscript-10.02.1-txtwrite-device-needs-to-countdown-the-device-on-tex.patch
|
Patch: ghostscript-10.02.1-txtwrite-device-needs-to-countdown-the-device-on-tex.patch
|
||||||
Patch: ghostscript-10.02.1-PostScript-Fix-selectdevice.patch
|
Patch: ghostscript-10.02.1-PostScript-Fix-selectdevice.patch
|
||||||
|
# https://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=b7beb19ad06e
|
||||||
|
Patch: 0001-Bug-707130-Cast-to-void-to-avoid-compiler-warning.patch
|
||||||
|
|
||||||
# Downstream patches -- these should be always included when doing rebase:
|
# Downstream patches -- these should be always included when doing rebase:
|
||||||
# ------------------
|
# ------------------
|
||||||
@ -420,6 +422,9 @@ done
|
|||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 09 2024 Zdenek Dohnal <zdohnal@redhat.com> - 10.02.1-5
|
||||||
|
- fix FTBFS with GCC 14
|
||||||
|
|
||||||
* Tue Nov 07 2023 Michael J Gruber <mjg@fedoraproject.org> - 10.02.1-4
|
* Tue Nov 07 2023 Michael J Gruber <mjg@fedoraproject.org> - 10.02.1-4
|
||||||
- fix txtwrite device and /selectdevice
|
- fix txtwrite device and /selectdevice
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user