summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-08-25 12:19:57 +0200
committerZenWalker <[email protected]>2019-08-26 18:13:51 +0200
commit4bd9da61ce6f9fffbab42bb373e5e91149403d98 (patch)
treecec50fc4ffd0574134439b1747adba3b852433ae
parentebc1b85e0d3cf374db4300d8fd407268eb0814fa (diff)
downloadengrampa-4bd9da61ce6f9fffbab42bb373e5e91149403d98.tar.bz2
engrampa-4bd9da61ce6f9fffbab42bb373e5e91149403d98.tar.xz
return sentence won't be never executed as it's preceded by exit
Detected by clang static analyzer: $ scan-build -enable-checker alpha.deadcode.UnreachableCode --keep-cc -o html-report make ... exit (EXIT_SUCCESS); return TRUE; /* <= This statement is never executed */ ...
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index daf0e88..56e75ea 100644
--- a/src/main.c
+++ b/src/main.c
@@ -43,12 +43,11 @@ static int extract;
static int extract_here;
static char *default_url = NULL;
-static gboolean
+static void
_print_version_and_exit (const gchar *option_name, const gchar *value, gpointer data, GError *error)
{
g_print("%s %s\n", _("Engrampa Archive Manager"), VERSION);
exit (EXIT_SUCCESS);
- return TRUE;
}
/* argv[0] from main(); used as the command to restart the program */