[gnome-builder] misc: fix some GCC warnings



commit d2a2a413509930aac721b8b2e98c4979c94ff83d
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Sep 13 16:12:42 2014 -0700

    misc: fix some GCC warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=736636

 src/editor/gb-source-change-monitor.c |    2 +-
 src/keybindings/gb-keybindings.c      |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/editor/gb-source-change-monitor.c b/src/editor/gb-source-change-monitor.c
index 6a39022..a559ebc 100644
--- a/src/editor/gb-source-change-monitor.c
+++ b/src/editor/gb-source-change-monitor.c
@@ -233,7 +233,7 @@ GbSourceChangeFlags
 gb_source_change_monitor_get_line (GbSourceChangeMonitor *monitor,
                                    guint                  lineno)
 {
-  g_return_if_fail (GB_IS_SOURCE_CHANGE_MONITOR (monitor));
+  g_return_val_if_fail (GB_IS_SOURCE_CHANGE_MONITOR (monitor), 0);
 
   if (lineno < monitor->priv->state->len)
     return monitor->priv->state->data [lineno];
diff --git a/src/keybindings/gb-keybindings.c b/src/keybindings/gb-keybindings.c
index 8f8ee28..51c62c9 100644
--- a/src/keybindings/gb-keybindings.c
+++ b/src/keybindings/gb-keybindings.c
@@ -89,8 +89,8 @@ gb_keybindings_load_bytes (GbKeybindings *keybindings,
 
   ENTRY;
 
-  g_return_if_fail (GB_IS_KEYBINDINGS (keybindings));
-  g_return_if_fail (bytes);
+  g_return_val_if_fail (GB_IS_KEYBINDINGS (keybindings), FALSE);
+  g_return_val_if_fail (bytes, FALSE);
 
   key_file = g_key_file_new ();
   data = g_bytes_get_data (bytes, &len);


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