File: Fix-build-with-GCC-14.patch

package info (click to toggle)
gtksourceview3 3.24.11-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,368 kB
  • sloc: ansic: 51,378; sh: 4,876; xml: 1,137; makefile: 1,089; python: 778; perl: 52; yacc: 45; cobol: 20; objc: 19; javascript: 16; sed: 16; fortran: 14; cpp: 8; ml: 3
file content (27 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: =?utf-8?q?Robert_Sch=C3=B6ftner?= <rs@unfoo.net>
Date: Fri, 2 Aug 2024 10:29:26 +0200
Subject: Fix build with GCC 14

GCC 14 no longer allows implicit pointer casts
Add explicit cast to fix build error

Forwarded: no, gtksourceview3 has been End of Life since 2020

Gbp-Dch: Name gcc14.patch
---
 gtksourceview/gtksourceview.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 716fcb0..130c632 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -1586,7 +1586,7 @@ set_source_buffer (GtkSourceView *view,
 	{
 		GtkSourceBufferInternal *buffer_internal;
 
-		view->priv->source_buffer = g_object_ref (buffer);
+		view->priv->source_buffer = (GtkSourceBuffer*) g_object_ref (buffer);
 
 		g_signal_connect (buffer,
 				  "highlight-updated",