From fa24ba27c1084dd3510b724f3a17779d5210f2b6 Mon Sep 17 00:00:00 2001 From: Andreas Schuh Date: Sat, 26 Nov 2016 21:18:30 +0000 Subject: [PATCH] fix: Remove unused program_name variable --- src/gflags.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gflags.cc b/src/gflags.cc index bc62227..921b4f9 100644 --- a/src/gflags.cc +++ b/src/gflags.cc @@ -1061,9 +1061,6 @@ static string ReadFileIntoString(const char* filename) { uint32 CommandLineFlagParser::ParseNewCommandLineFlags(int* argc, char*** argv, bool remove_flags) { - const char *program_name = strrchr((*argv)[0], PATH_SEPARATOR); // nix path - program_name = (program_name == NULL ? (*argv)[0] : program_name+1); - int first_nonopt = *argc; // for non-options moved to the end registry_->Lock();