Merge pull request #138 from polrop/fix-warning-in-test

Fix compilation warning in Ninja's test suite.
This commit is contained in:
Evan Martin 2011-11-21 10:16:08 -08:00
commit 2198fd8ce4
3 changed files with 5 additions and 5 deletions

View File

@ -251,7 +251,7 @@ bool BuildTest::StartCommand(Edge* edge) {
return true;
}
Edge* BuildTest::WaitForCommand(bool* success, string* output) {
Edge* BuildTest::WaitForCommand(bool* success, string* /* output */) {
if (Edge* edge = last_command_) {
if (edge->rule_->name_ == "fail")
*success = false;

View File

@ -163,15 +163,15 @@ struct StatTest : public StateTestWithBuiltinRules,
public DiskInterface {
// DiskInterface implementation.
virtual int Stat(const string& path);
virtual bool MakeDir(const string& path) {
virtual bool MakeDir(const string& /* path */) {
assert(false);
return false;
}
virtual string ReadFile(const string& path, string* err) {
virtual string ReadFile(const string& /* path */, string* /* err */) {
assert(false);
return "";
}
virtual int RemoveFile(const string& path) {
virtual int RemoveFile(const string& /* path */) {
assert(false);
return 0;
}

View File

@ -51,7 +51,7 @@ bool VirtualFileSystem::MakeDir(const string& path) {
return true; // success
}
string VirtualFileSystem::ReadFile(const string& path, string* err) {
string VirtualFileSystem::ReadFile(const string& path, string* /* err */) {
files_read_.push_back(path);
FileMap::iterator i = files_.find(path);
if (i != files_.end())