File: gcc14.patch

package info (click to toggle)
libgpod 0.8.3-23
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,824 kB
  • sloc: ansic: 26,992; sh: 11,435; cs: 1,400; python: 1,251; makefile: 448; cpp: 300; xml: 100
file content (35 lines) | stat: -rw-r--r-- 1,294 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
28
29
30
31
32
33
34
35
Description: Fix FTBFS with GCC14.
Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com>
Date: Thu, 15 Aug 2024 16:18:05 +0200

--- libgpod-0.8.3.orig/src/ithumb-writer.c
+++ libgpod-0.8.3/src/ithumb-writer.c
@@ -728,7 +728,7 @@ ithumb_writer_handle_rotation (GdkPixbuf
   {
       return gdk_pixbuf_rotate_simple (pixbuf, *rotation);
   }
-  return g_object_ref (G_OBJECT (pixbuf));
+  return (GdkPixbuf*) g_object_ref (G_OBJECT (pixbuf));
 }
 
 /* On the iPhone, thumbnails are presented as squares in a grid.
@@ -968,7 +968,7 @@ ithumb_writer_write_thumbnail (iThumbWri
     else if (thumb->data_type == ITDB_THUMB_TYPE_PIXBUF)
     {
         Itdb_Thumb_Pixbuf *thumb_pixbuf = (Itdb_Thumb_Pixbuf *)thumb;
-        pixbuf = g_object_ref (G_OBJECT (thumb_pixbuf->pixbuf));
+        pixbuf = (GdkPixbuf*) g_object_ref (G_OBJECT (thumb_pixbuf->pixbuf));
     }
 
     if (pixbuf == NULL)
--- libgpod-0.8.3.orig/tools/generic-callout.c
+++ libgpod-0.8.3.orig/tools/generic-callout.c
@@ -670,7 +670,7 @@ ithumb_writer_write_thumbnail (iThumbWri
 }
 
 
-static char *get_info_from_usb (usb_bus_number, usb_device_number)
+static char *get_info_from_usb (guint usb_bus_number, guint usb_device_number)
 {
 #ifdef HAVE_LIBUSB
         return read_sysinfo_extended_from_usb (usb_bus_number,