[rhythmbox/wip/hadess/cleanups: 15/33] sources: Fix compile-time warning
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox/wip/hadess/cleanups: 15/33] sources: Fix compile-time warning
- Date: Mon, 15 Nov 2021 13:58:55 +0000 (UTC)
commit 78b4da77405175a642ac78dfa7ca1d0147061cac
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 3 11:19:43 2021 +0100
sources: Fix compile-time warning
rhythmbox/sources/rb-library-source.c: In function ‘impl_add_uri’:
rhythmbox/sources/rb-library-source.c:1426:32: warning: assignment to ‘RBSource *’ {aka ‘struct _RBSource
*’} from incompatible pointer type ‘RBLibrarySource *’ {aka ‘struct _RBLibrarySource *’}
[-Wincompatible-pointer-types]
1426 | cbdata->source = g_object_ref (source);
| ^
sources/rb-library-source.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sources/rb-library-source.c b/sources/rb-library-source.c
index e5b47f4eb..0982789dd 100644
--- a/sources/rb-library-source.c
+++ b/sources/rb-library-source.c
@@ -1423,7 +1423,7 @@ impl_add_uri (RBSource *asource,
cbdata = g_new0 (struct ImportJobCallbackData, 1);
cbdata->uri = g_strdup (uri);
- cbdata->source = g_object_ref (source);
+ cbdata->source = RB_SOURCE (g_object_ref (source));
cbdata->callback = callback;
cbdata->data = data;
cbdata->destroy_data = destroy_data;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]