File libgda-no-return-in-nonvoid.patch of Package libgda

Index: libgda-5.1.2/libgda-ui/gdaui-data-entry.c
===================================================================
--- libgda-5.1.2.orig/libgda-ui/gdaui-data-entry.c
+++ libgda-5.1.2/libgda-ui/gdaui-data-entry.c
@@ -289,7 +289,7 @@ gdaui_data_entry_validate (GdauiDataEntr
 	g_return_val_if_fail (GDAUI_IS_DATA_ENTRY (de), FALSE);
 
 	if (GDAUI_DATA_ENTRY_GET_IFACE (de)->validate)
-		(GDAUI_DATA_ENTRY_GET_IFACE (de)->validate) (de, error);
+		return (GDAUI_DATA_ENTRY_GET_IFACE (de)->validate) (de, error);
 	else
 		return TRUE;
 }
Index: libgda-5.1.2/libgda-ui/gdaui-tree-store.c
===================================================================
--- libgda-5.1.2.orig/libgda-ui/gdaui-tree-store.c
+++ libgda-5.1.2/libgda-ui/gdaui-tree-store.c
@@ -536,7 +536,7 @@ gdaui_tree_store_get_node (GdauiTreeStor
 gboolean
 gdaui_tree_store_get_iter (GdauiTreeStore *store, GtkTreeIter *iter, GdaTreeNode *node)
 {
-	gdaui_tree_store_get_iter_from_node (store, iter, node);
+	return gdaui_tree_store_get_iter_from_node (store, iter, node);
 }
openSUSE Build Service is sponsored by