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>
* 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>
......
......@@ -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 @@ batch_run (Gimp *gimp,
* 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 @@ batch_exit_after_callback (Gimp *gimp)
tile_swap_exit ();
exit (EXIT_SUCCESS);
return TRUE;
}
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