From 4a7da1e14387076e5cec6acd138de068afa5a352 Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Thu, 19 Feb 2015 14:44:34 +0100 Subject: [PATCH] Do not return on void functions --- gtk/gtkbitmaskprivateimpl.h | 4 ++-- gtk/gtkcssshorthandproperty.c | 2 +- gtk/gtkpaned.c | 4 ++-- gtk/gtkstyleproperty.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkbitmaskprivateimpl.h b/gtk/gtkbitmaskprivateimpl.h index c0058c77da..230c6a6495 100644 --- a/gtk/gtkbitmaskprivateimpl.h +++ b/gtk/gtkbitmaskprivateimpl.h @@ -38,7 +38,7 @@ static inline void _gtk_bitmask_free (GtkBitmask *mask) { if (_gtk_bitmask_is_allocated (mask)) - return _gtk_allocated_bitmask_free (mask); + _gtk_allocated_bitmask_free (mask); } static inline char * @@ -55,7 +55,7 @@ static inline void _gtk_bitmask_print (const GtkBitmask *mask, GString *string) { - return _gtk_allocated_bitmask_print (mask, string); + _gtk_allocated_bitmask_print (mask, string); } static inline GtkBitmask * diff --git a/gtk/gtkcssshorthandproperty.c b/gtk/gtkcssshorthandproperty.c index 68bb064a10..5e05761bbd 100644 --- a/gtk/gtkcssshorthandproperty.c +++ b/gtk/gtkcssshorthandproperty.c @@ -82,7 +82,7 @@ _gtk_css_shorthand_property_query (GtkStyleProperty *property, { GtkCssShorthandProperty *shorthand = GTK_CSS_SHORTHAND_PROPERTY (property); - return shorthand->query (shorthand, value, query_func, query_data); + shorthand->query (shorthand, value, query_func, query_data); } static GtkCssValue * diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 0790c0b666..31c8b96c75 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1182,9 +1182,9 @@ gtk_paned_get_preferred_size (GtkWidget *widget, GtkPanedPrivate *priv = paned->priv; if (orientation == priv->orientation) - return gtk_paned_get_preferred_size_for_orientation (widget, size, minimum, natural); + gtk_paned_get_preferred_size_for_orientation (widget, size, minimum, natural); else - return gtk_paned_get_preferred_size_for_opposite_orientation (widget, size, minimum, natural); + gtk_paned_get_preferred_size_for_opposite_orientation (widget, size, minimum, natural); } static void diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index 40bcd46a70..9565897290 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -215,7 +215,7 @@ _gtk_style_property_query (GtkStyleProperty *property, klass = GTK_STYLE_PROPERTY_GET_CLASS (property); - return klass->query (property, value, query_func, query_data); + klass->query (property, value, query_func, query_data); } void