[libgd/gd.msvc: 8/8] gd-main-box-child.c: Fix builds against newer GLib releases




commit e420f6fd809b4971f10179b8d342093a0bb1240f
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Aug 11 16:44:05 2021 +0800

    gd-main-box-child.c: Fix builds against newer GLib releases
    
    Avoid returning a value on a 'void' function, which is considered an error when
    building against GLib-2.68.x or later on Visual Studio when
    msvc_recommended_pragmas.h is force-included.

 libgd/gd-main-box-child.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libgd/gd-main-box-child.c b/libgd/gd-main-box-child.c
index 9a1118d..42c9588 100644
--- a/libgd/gd-main-box-child.c
+++ b/libgd/gd-main-box-child.c
@@ -170,7 +170,7 @@ gd_main_box_child_set_selected (GdMainBoxChild *self, gboolean selected)
 
   iface = GD_MAIN_BOX_CHILD_GET_IFACE (self);
 
-  return (* iface->set_selected) (self, selected);
+  (* iface->set_selected) (self, selected);
 }
 
 /**


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