[snappy] ui: Control reaches the end of non-void functions



commit d0704142e2aaee73edf3accf1b9056c2f807a7be
Author: Atri <badshah400 aim com>
Date:   Wed May 2 22:27:34 2012 +0100

    ui: Control reaches the end of non-void functions
    
    While building snappy (v 0.2) for openSUSE, rpmlint, the rpm building error
    checker, reports these errors in the file src/user_interface.c
    
    I: Program returns random data in a function
    E: snappy no-return-in-nonvoid-function user_interface.c:994, 909, 638

 src/user_interface.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index ae1a5a5..d5a1a6b 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -756,6 +756,8 @@ rotate_video (UserInterface * ui)
       CLUTTER_GRAVITY_CENTER);
 
   size_change (CLUTTER_STAGE (ui->stage), NULL, 0, ui);
+
+  return TRUE;
 }
 
 static void
@@ -1015,6 +1017,8 @@ interface_load_uri (UserInterface * ui, gchar * uri)
     clutter_stage_set_title (CLUTTER_STAGE (ui->stage), ui->filename);
     clutter_text_set_text (CLUTTER_TEXT (ui->control_title), ui->filename);
   }
+
+  return TRUE;
 }
 
 void
@@ -1100,4 +1104,6 @@ interface_update_controls (UserInterface * ui)
   progress_update_text (ui);
   progress_update_seekbar (ui);
   update_volume (ui, -1);
+
+  return TRUE;
 }



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