[snappy/release_0.2] ui: Control reaches the end of non-void functions
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy/release_0.2] ui: Control reaches the end of non-void functions
- Date: Wed, 2 May 2012 21:23:28 +0000 (UTC)
commit 492e5b3faea396ebe6f72eacf7eb8814227e2409
Author: Atri <badshah400 aim com>
Date: Wed May 2 22:19:51 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 3687e6b..ac2f6ad 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -635,6 +635,8 @@ rotate_video (UserInterface * ui)
}
size_change (CLUTTER_STAGE (ui->stage), ui);
+
+ return TRUE;
}
static void
@@ -906,6 +908,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
@@ -991,4 +995,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]