diff --git a/tools/reduce.cpp b/tools/reduce.cpp index 86d3f7da0..fa5362d0d 100644 --- a/tools/reduce.cpp +++ b/tools/reduce.cpp @@ -70,7 +70,7 @@ public: cppcheck.terminate(); } } - void reportProgress(const std::string &filename, const char stage[], const std::size_t value) { + void reportProgress(const std::string &/*filename*/, const char /*stage*/[], const std::size_t /*value*/) { if (std::time(0) > stopTime) { if (pattern.empty()) foundLine = true; @@ -581,7 +581,7 @@ int main(int argc, char *argv[]) bool def = false; bool maxconfigs = false; - for (int i = 1, includePathIndex = 0; i < argc; i++) { + for (int i = 1; i < argc; i++) { if (strcmp(argv[i], "--stdout") == 0) print = true; else if (strcmp(argv[i], "--hang") == 0)