Commit a7798936 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

declared function calling exit() as G_GNUC_NORETURN.

2008-12-23  Sven Neumann  <sven@gimp.org>

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


svn path=/trunk/; revision=27825
parent d54686d2
2008-12-23 Sven Neumann <sven@gimp.org> 2008-12-23 Sven Neumann <sven@gimp.org>
* tools/gimptool.c: declared function usage() as G_GNUC_NORETURN. * app/batch.c
* tools/gimptool.c: declared functions calling exit() as
G_GNUC_NORETURN.
2008-12-21 Aurimas Juška <aurisj@svn.gnome.org> 2008-12-21 Aurimas Juška <aurisj@svn.gnome.org>
......
...@@ -41,12 +41,13 @@ ...@@ -41,12 +41,13 @@
#define BATCH_DEFAULT_EVAL_PROC "plug-in-script-fu-eval" #define BATCH_DEFAULT_EVAL_PROC "plug-in-script-fu-eval"
static gboolean batch_exit_after_callback (Gimp *gimp); static void batch_exit_after_callback (Gimp *gimp) G_GNUC_NORETURN;
static void batch_run_cmd (Gimp *gimp,
const gchar *proc_name, static void batch_run_cmd (Gimp *gimp,
GimpProcedure *procedure, const gchar *proc_name,
GimpRunMode run_mode, GimpProcedure *procedure,
const gchar *cmd); GimpRunMode run_mode,
const gchar *cmd);
void void
...@@ -123,7 +124,7 @@ batch_run (Gimp *gimp, ...@@ -123,7 +124,7 @@ batch_run (Gimp *gimp,
* message "batch command experienced an execution error" would appear * message "batch command experienced an execution error" would appear
* and gimp would hang forever. * and gimp would hang forever.
*/ */
static gboolean static void
batch_exit_after_callback (Gimp *gimp) batch_exit_after_callback (Gimp *gimp)
{ {
if (gimp->be_verbose) if (gimp->be_verbose)
...@@ -135,8 +136,6 @@ batch_exit_after_callback (Gimp *gimp) ...@@ -135,8 +136,6 @@ batch_exit_after_callback (Gimp *gimp)
tile_swap_exit (); tile_swap_exit ();
exit (EXIT_SUCCESS); exit (EXIT_SUCCESS);
return TRUE;
} }
static void static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment