[Xfce4-commits] [apps/xfdashboard] 01/01: Fix compiler warning about non-void functions returning no value
noreply at xfce.org
noreply at xfce.org
Sun Mar 29 13:00:12 CEST 2015
This is an automated email from the git hooks/post-receive script.
nomad pushed a commit to branch master
in repository apps/xfdashboard.
commit 803241c4e9673e4fe74b203e553aa9b974e26efe
Author: Stephan Haller <nomad at froevel.de>
Date: Sun Mar 29 12:59:45 2015 +0200
Fix compiler warning about non-void functions returning no value
---
xfdashboard/search-result-set.c | 4 ++--
xfdashboard/search-view.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/xfdashboard/search-result-set.c b/xfdashboard/search-result-set.c
index bc1301c..2a6604c 100644
--- a/xfdashboard/search-result-set.c
+++ b/xfdashboard/search-result-set.c
@@ -170,8 +170,8 @@ gboolean xfdashboard_search_result_set_has_item(XfdashboardSearchResultSet *self
{
XfdashboardSearchResultSetPrivate *priv;
- g_return_if_fail(XFDASHBOARD_IS_SEARCH_RESULT_SET(self));
- g_return_if_fail(inItem);
+ g_return_val_if_fail(XFDASHBOARD_IS_SEARCH_RESULT_SET(self), FALSE);
+ g_return_val_if_fail(inItem, FALSE);
priv=self->priv;
diff --git a/xfdashboard/search-view.c b/xfdashboard/search-view.c
index 4e890f9..5ba7871 100644
--- a/xfdashboard/search-view.c
+++ b/xfdashboard/search-view.c
@@ -681,7 +681,7 @@ static ClutterActor* _xfdashboard_search_view_update_provider_actor_new(Xfdashbo
GList *actions;
GList *actionsIter;
- g_return_if_fail(XFDASHBOARD_IS_SEARCH_VIEW(self));
+ g_return_val_if_fail(XFDASHBOARD_IS_SEARCH_VIEW(self), NULL);
g_return_val_if_fail(inProviderData, NULL);
g_return_val_if_fail(inItem, NULL);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list