gnome-utils r8393 - in trunk: baobab baobab/src gnome-dictionary gnome-dictionary/src logview



Author: vuntz
Date: Wed Feb  4 00:32:01 2009
New Revision: 8393
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8393&view=rev

Log:
Fix a bunch of compiler warnings. Bug #570422.


Modified:
   trunk/baobab/ChangeLog
   trunk/baobab/src/baobab-chart.c
   trunk/gnome-dictionary/ChangeLog
   trunk/gnome-dictionary/src/gdict-applet.c
   trunk/logview/ChangeLog
   trunk/logview/gtkmessagearea.c
   trunk/logview/logview-log.c
   trunk/logview/logview-manager.c

Modified: trunk/baobab/src/baobab-chart.c
==============================================================================
--- trunk/baobab/src/baobab-chart.c	(original)
+++ trunk/baobab/src/baobab-chart.c	Wed Feb  4 00:32:01 2009
@@ -1165,7 +1165,7 @@
   gint w, h;
   GdkPixbuf *pixbuf;
 
-  g_return_if_fail (BAOBAB_IS_CHART (widget));
+  g_return_val_if_fail (BAOBAB_IS_CHART (widget), NULL);
 
   gdk_drawable_get_size (widget->window, &w, &h);
   pixbuf = gdk_pixbuf_get_from_drawable (NULL,
@@ -1778,7 +1778,7 @@
 {
   BaobabChartPrivate *priv;
 
-  g_return_if_fail (BAOBAB_IS_CHART (chart));
+  g_return_val_if_fail (BAOBAB_IS_CHART (chart), FALSE);
 
   priv = BAOBAB_CHART_GET_PRIVATE (chart);
   return priv->summary_mode;
@@ -1798,7 +1798,7 @@
 {
   BaobabChartPrivate *priv;
 
-  g_return_if_fail (BAOBAB_IS_CHART (chart));
+  g_return_val_if_fail (BAOBAB_IS_CHART (chart), FALSE);
 
   priv = BAOBAB_CHART_GET_PRIVATE (chart);
   return priv->is_frozen;
@@ -1818,7 +1818,7 @@
 {
   BaobabChartPrivate *priv;
 
-  g_return_if_fail (BAOBAB_IS_CHART (chart));
+  g_return_val_if_fail (BAOBAB_IS_CHART (chart), NULL);
 
   priv = BAOBAB_CHART_GET_PRIVATE (chart);
   return (priv->highlighted_item ? 

Modified: trunk/gnome-dictionary/src/gdict-applet.c
==============================================================================
--- trunk/gnome-dictionary/src/gdict-applet.c	(original)
+++ trunk/gnome-dictionary/src/gdict-applet.c	Wed Feb  4 00:32:01 2009
@@ -421,6 +421,8 @@
       
       priv->is_window_showing = FALSE;
     }
+
+  return FALSE;
 }
 
 static void

Modified: trunk/logview/gtkmessagearea.c
==============================================================================
--- trunk/logview/gtkmessagearea.c	(original)
+++ trunk/logview/gtkmessagearea.c	Wed Feb  4 00:32:01 2009
@@ -33,6 +33,7 @@
 
 #include "gtkmessagearea.h"
 
+#include <glib/gi18n.h>
 #include <gtk/gtk.h>
 #include <gdk/gdkkeysyms.h>
 

Modified: trunk/logview/logview-log.c
==============================================================================
--- trunk/logview/logview-log.c	(original)
+++ trunk/logview/logview-log.c	Wed Feb  4 00:32:01 2009
@@ -416,7 +416,7 @@
     to_skip = tmp[0] | (tmp[0] << 8);
     bytes = g_input_stream_skip (is, to_skip, NULL, NULL);
     if (bytes != to_skip) {
-      return;
+      return FALSE;
     }
 	}
 

Modified: trunk/logview/logview-manager.c
==============================================================================
--- trunk/logview/logview-manager.c	(original)
+++ trunk/logview/logview-manager.c	Wed Feb  4 00:32:01 2009
@@ -371,6 +371,8 @@
   if (log != NULL) {
     return g_object_ref (log);
   }
+
+  return NULL;
 }
 
 void



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