diff options
author | rbuj <[email protected]> | 2019-08-25 12:19:57 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2019-08-26 18:13:51 +0200 |
commit | 4bd9da61ce6f9fffbab42bb373e5e91149403d98 (patch) | |
tree | cec50fc4ffd0574134439b1747adba3b852433ae | |
parent | ebc1b85e0d3cf374db4300d8fd407268eb0814fa (diff) | |
download | engrampa-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |