[rhythmbox/wip/hadess/cleanups: 29/30] sources: Fix compile-time warning




commit d48270c12eba78d5f7bf8807d6728527430fb38d
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]