gimp r27825 - in trunk: . app



Author: neo
Date: Tue Dec 23 12:08:18 2008
New Revision: 27825
URL: http://svn.gnome.org/viewvc/gimp?rev=27825&view=rev

Log:
2008-12-23  Sven Neumann  <sven gimp org>

	* app/batch.c: declared function calling exit() as G_GNUC_NORETURN.



Modified:
   trunk/ChangeLog
   trunk/app/batch.c

Modified: trunk/app/batch.c
==============================================================================
--- trunk/app/batch.c	(original)
+++ trunk/app/batch.c	Tue Dec 23 12:08:18 2008
@@ -41,12 +41,13 @@
 #define BATCH_DEFAULT_EVAL_PROC   "plug-in-script-fu-eval"
 
 
-static gboolean  batch_exit_after_callback (Gimp          *gimp);
-static void      batch_run_cmd             (Gimp          *gimp,
-                                            const gchar   *proc_name,
-                                            GimpProcedure *procedure,
-                                            GimpRunMode    run_mode,
-                                            const gchar   *cmd);
+static void  batch_exit_after_callback (Gimp          *gimp) G_GNUC_NORETURN;
+
+static void  batch_run_cmd             (Gimp          *gimp,
+                                        const gchar   *proc_name,
+                                        GimpProcedure *procedure,
+                                        GimpRunMode    run_mode,
+                                        const gchar   *cmd);
 
 
 void
@@ -123,7 +124,7 @@
  * message "batch command experienced an execution error" would appear
  * and gimp would hang forever.
  */
-static gboolean
+static void
 batch_exit_after_callback (Gimp *gimp)
 {
   if (gimp->be_verbose)
@@ -135,8 +136,6 @@
   tile_swap_exit ();
 
   exit (EXIT_SUCCESS);
-
-  return TRUE;
 }
 
 static void



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