Commit 88a8de01 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

[master] remove unused code, reported by Clang Static Analyzer

from Clang Static Analyzer:
Dead Increment
Value stored to 'argv' is never read

(This was just a step that is commonly used per getopt docs.)

Okayed via jabber.
parent e75c686c
......@@ -116,7 +116,6 @@ main(int argc, char* argv[]) {
}
}
argc -= optind;
argv += optind;
if (argc != 0) {
usage();
}
......
......@@ -183,7 +183,6 @@ main(int argc, char* argv[]) {
}
}
argc -= optind;
argv += optind;
if (argc != 0) {
usage();
}
......
......@@ -179,7 +179,6 @@ main(int argc, char* argv[]) {
}
}
argc -= optind;
argv += optind;
if (argc != 0) {
usage();
}
......
......@@ -145,7 +145,6 @@ main(int argc, char* argv[]) {
}
}
argc -= optind;
argv += optind;
if (argc != 0) {
usage();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment