summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-07-05 12:47:04 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-07-05 12:47:04 -0700
commit08ba596c3c21c9a43e02ec257a37ef6152cbd3d3 (patch)
tree0949c2981dbab0198b4321c80ad4297dae9bc6a2
parent7cb653d8699d6a774b340384603abc47a41b8295 (diff)
Delete unreachable code after usage() calls
Warned about by both Solaris Studio cc: "fslsfonts.c", line 148: warning: statement not reached "fslsfonts.c", line 204: warning: statement not reached and clang: fslsfonts.c:204:7: warning: will never be executed [-Wunreachable-code] break; ^~~~~ fslsfonts.c:148:11: warning: will never be executed [-Wunreachable-code] exit(0); ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--fslsfonts.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fslsfonts.c b/fslsfonts.c
index 769517b..73d21ec 100644
--- a/fslsfonts.c
+++ b/fslsfonts.c
@@ -145,7 +145,6 @@ main(int argc, char *argv[])
if ((svr = FSOpenServer(servername)) == NULL) {
if (FSServerName(servername) == NULL) {
usage("no font server defined");
- exit(0);
}
fprintf(stderr, "%s: unable to open server \"%s\"\n",
program_name, FSServerName(servername));
@@ -201,7 +200,6 @@ main(int argc, char *argv[])
fprintf(stderr, "%s: unrecognized option '%s'\n",
program_name, argv[0]);
usage(NULL);
- break;
}
if (i == 1)
usage(NULL);