mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-11 11:47:02 +02:00
cheese: fix build with gcc14
This commit is contained in:
parent
cfe8e9535b
commit
7a5d92d893
1 changed files with 27 additions and 0 deletions
27
srcpkgs/cheese/patches/gcc14.patch
Normal file
27
srcpkgs/cheese/patches/gcc14.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From d8b8f27730cca948a5e5346b8ed2db0793bb16e7 Mon Sep 17 00:00:00 2001
|
||||
From: Florian Weimer <fweimer@redhat.com>
|
||||
Date: Fri, 19 Jan 2024 21:31:33 +0100
|
||||
Subject: [PATCH] libcheese: Add GtkWidget cast to avoid an
|
||||
incompatible-pointer-types error
|
||||
|
||||
This is required for compilation with GCC 14.
|
||||
---
|
||||
libcheese/cheese-flash.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/libcheese/cheese-flash.c b/libcheese/cheese-flash.c
|
||||
index 59959dbd..e4023221 100644
|
||||
--- a/libcheese/cheese-flash.c
|
||||
+++ b/libcheese/cheese-flash.c
|
||||
@@ -132,7 +132,7 @@ cheese_flash_set_property (GObject *object,
|
||||
GObject *parent;
|
||||
parent = g_value_get_object (value);
|
||||
if (object != NULL)
|
||||
- priv->parent = g_object_ref (parent);
|
||||
+ priv->parent = GTK_WIDGET (g_object_ref (parent));
|
||||
else
|
||||
priv->parent = NULL;
|
||||
}
|
||||
--
|
||||
GitLab
|
||||
|
Loading…
Add table
Reference in a new issue