From 08ba596c3c21c9a43e02ec257a37ef6152cbd3d3 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 5 Jul 2014 12:47:04 -0700 Subject: 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 --- fslsfonts.c | 2 -- 1 file changed, 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); -- cgit v1.2.3