Skip to content

Commit

Permalink
[compdb] Move declarations closer to their use.
Browse files Browse the repository at this point in the history
  • Loading branch information
asankah committed Apr 5, 2018
1 parent b6296fb commit e71bcce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ninja.cc
Original file line number Diff line number Diff line change
Expand Up @@ -697,9 +697,6 @@ int NinjaMain::ToolCompilationDatabase(const Options* options, int argc,
argc++;
argv--;

bool first = true;
vector<char> cwd;

EvaluateCommandMode eval_mode = ECM_NORMAL;

optind = 1;
Expand All @@ -724,6 +721,9 @@ int NinjaMain::ToolCompilationDatabase(const Options* options, int argc,
argv += optind;
argc -= optind;

bool first = true;
vector<char> cwd;

do {
cwd.resize(cwd.size() + 1024);
errno = 0;
Expand Down

0 comments on commit e71bcce

Please sign in to comment.