[gnome-builder] libide: fix "non-void function should return a value"



commit dae62d052a5882b265286c86c431a02fd32b6bde
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue May 12 10:57:33 2015 +0800

    libide: fix "non-void function should return a value"

 libide/ide-project-info.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-project-info.c b/libide/ide-project-info.c
index 2e7006b..7c3755d 100644
--- a/libide/ide-project-info.c
+++ b/libide/ide-project-info.c
@@ -273,7 +273,7 @@ ide_project_info_set_last_modified_at (IdeProjectInfo *self,
 gboolean
 ide_project_info_get_is_recent (IdeProjectInfo *self)
 {
-  g_return_if_fail (IDE_IS_PROJECT_INFO (self));
+  g_return_val_if_fail (IDE_IS_PROJECT_INFO (self), FALSE);
 
   return self->is_recent;
 }


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