[empathy] Add noreturn annotation to version callback function



commit 9039976a1e17444081eb9df2e480d3b4c5266a88
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Jul 8 12:13:02 2010 +0100

    Add noreturn annotation to version callback function

 src/empathy.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index 28dd3e0..fd49d34 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -228,6 +228,11 @@ unique_app_message_cb (UniqueApp *unique_app,
   return UNIQUE_RESPONSE_OK;
 }
 
+static gboolean show_version_cb (const char *option_name,
+    const char *value,
+    gpointer data,
+    GError **error) G_GNUC_NORETURN;
+
 static gboolean
 show_version_cb (const char *option_name,
     const char *value,
@@ -237,8 +242,6 @@ show_version_cb (const char *option_name,
   g_print ("%s\n", PACKAGE_STRING);
 
   exit (EXIT_SUCCESS);
-
-  return FALSE;
 }
 
 static void



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