cheese: fix build with gcc14

This commit is contained in:
oreo639 2025-03-18 18:37:23 -07:00
parent cfe8e9535b
commit 7a5d92d893

View 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