[gnome-builder] build: fix a few warnings
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] build: fix a few warnings
- Date: Mon, 23 Mar 2015 23:18:58 +0000 (UTC)
commit a8495e7d1302d71025aa317345c4bb610fd07a21
Author: Christian Hergert <christian hergert me>
Date: Sat Feb 7 13:51:20 2015 -0800
build: fix a few warnings
libide/directory/ide-directory-vcs.c | 4 ++--
libide/git/ide-git-vcs.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/directory/ide-directory-vcs.c b/libide/directory/ide-directory-vcs.c
index b79f8ee..0df8992 100644
--- a/libide/directory/ide-directory-vcs.c
+++ b/libide/directory/ide-directory-vcs.c
@@ -154,8 +154,8 @@ ide_directory_vcs_init_finish (GAsyncInitable *initable,
GTask *task = (GTask *)result;
g_return_val_if_fail (IDE_IS_DIRECTORY_VCS (initable), FALSE);
- g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
- g_return_val_if_fail (G_IS_TASK (task), NULL);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), FALSE);
+ g_return_val_if_fail (G_IS_TASK (task), FALSE);
return g_task_propagate_boolean (task, error);
}
diff --git a/libide/git/ide-git-vcs.c b/libide/git/ide-git-vcs.c
index 4e65b74..43934be 100644
--- a/libide/git/ide-git-vcs.c
+++ b/libide/git/ide-git-vcs.c
@@ -174,7 +174,7 @@ ide_git_vcs_reload_index (IdeGitVcs *self,
guint count;
guint i;
- g_return_if_fail (IDE_IS_GIT_VCS (self));
+ g_return_val_if_fail (IDE_IS_GIT_VCS (self), FALSE);
index = ggit_repository_get_index (priv->repository, error);
if (!index)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]