diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-06-20 23:23:54 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-07-06 08:38:01 -0700 |
commit | 47908fd7a0d061fdcd21e3498da4e223ca9136d9 (patch) | |
tree | f313b8c6aaa4507239b2d571db6f74d92bf64394 | |
parent | 48e541dc2f2fc3f4e99d3e168c28241ff5adff4d (diff) |
Remove extraneous duplicate checks for -r & -n options
Flagged by cppcheck 1.65:
[mkfontscale.c:247]: (style) Expression is always false because
'else if' condition matches previous condition at line 224.
[mkfontscale.c:245]: (style) Expression is always false because
'else if' condition matches previous condition at line 227.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | mkfontscale.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/mkfontscale.c b/mkfontscale.c index 036a0b4..da93e0c 100644 --- a/mkfontscale.c +++ b/mkfontscale.c @@ -242,10 +242,6 @@ main(int argc, char **argv) } bigEncodingFuzz = atof(argv[argn + 1]) / 100.0; argn += 2; - } else if (strcmp(argv[argn], "-r") == 0) { /* ignore for now */ - argn++; - } else if (strcmp(argv[argn], "-n") == 0) { - argn++; } else if (strcmp(argv[argn], "-v") == 0) { printf("%s\n", PACKAGE_STRING); exit(0); |