[gtk+] Don't return from a void function



commit 1c1b51d52d8ade1598b3c6043ef4dbfc0a563f4b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 30 00:53:35 2014 -0400

    Don't return from a void function
    
    And don't return the value of void functions, either.

 gtk/gtklabel.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index bf8d101..cf60cf3 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -3865,9 +3865,9 @@ gtk_label_get_preferred_height_for_width (GtkWidget *widget,
                                           gint      *minimum_height,
                                           gint      *natural_height)
 {
-  return gtk_label_get_preferred_height_and_baseline_for_width (widget, width,
-                                                               minimum_height, natural_height,
-                                                               NULL, NULL);
+  gtk_label_get_preferred_height_and_baseline_for_width (widget, width,
+                                                         minimum_height, natural_height,
+                                                         NULL, NULL);
 }
 
 static void


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