projects
/
platform
/
upstream
/
gflags.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22ed2ce
)
fix: Remove unused program_name variable
author
Andreas Schuh
<andreas.schuh.84@gmail.com>
Sat, 26 Nov 2016 21:18:30 +0000
(21:18 +0000)
committer
Andreas Schuh
<andreas.schuh.84@gmail.com>
Sat, 26 Nov 2016 21:25:02 +0000
(21:25 +0000)
src/gflags.cc
patch
|
blob
|
history
diff --git
a/src/gflags.cc
b/src/gflags.cc
index
bc62227
..
921b4f9
100644
(file)
--- 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();