[gjs/mozjs102-msvc: 8/8] gjs-util.c: Fix building against GLib-2.68.x or later




commit 483d4df86f3eeb789f53458c7c4cd8cdd201ada9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Aug 9 14:30:44 2022 +0800

    gjs-util.c: Fix building against GLib-2.68.x or later
    
    ... on Visual Studio, as returning a value in a void-retype function is
    considered an error there.

 libgjs-private/gjs-util.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgjs-private/gjs-util.c b/libgjs-private/gjs-util.c
index e0033ce32..6e9ffec28 100644
--- a/libgjs-private/gjs-util.c
+++ b/libgjs-private/gjs-util.c
@@ -142,9 +142,9 @@ void gjs_g_binding_group_bind_full(
         from_closure = g_cclosure_new(G_CALLBACK(from_callback), from_data,
                                       G_CLOSURE_NOTIFY(from_notify));
 
-    return g_binding_group_bind_with_closures(source, source_property, target,
-                                              target_property, flags,
-                                              to_closure, from_closure);
+    g_binding_group_bind_with_closures(source, source_property, target,
+                                       target_property, flags,
+                                       to_closure, from_closure);
 }
 
 #undef G_CLOSURE_NOTIFY


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]