Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit eb8a584

Browse files
Fix compilation warning in Ninja's test suite.
1 parent 73023f6 commit eb8a584

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/build_test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ bool BuildTest::StartCommand(Edge* edge) {
251251
return true;
252252
}
253253

254-
Edge* BuildTest::WaitForCommand(bool* success, string* output) {
254+
Edge* BuildTest::WaitForCommand(bool* success, string* /* output */) {
255255
if (Edge* edge = last_command_) {
256256
if (edge->rule_->name_ == "fail")
257257
*success = false;

src/disk_interface_test.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ struct StatTest : public StateTestWithBuiltinRules,
163163
public DiskInterface {
164164
// DiskInterface implementation.
165165
virtual int Stat(const string& path);
166-
virtual bool MakeDir(const string& path) {
166+
virtual bool MakeDir(const string& /* path */) {
167167
assert(false);
168168
return false;
169169
}
170-
virtual string ReadFile(const string& path, string* err) {
170+
virtual string ReadFile(const string& /* path */, string* /* err */) {
171171
assert(false);
172172
return "";
173173
}
174-
virtual int RemoveFile(const string& path) {
174+
virtual int RemoveFile(const string& /* path */) {
175175
assert(false);
176176
return 0;
177177
}

src/test.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ bool VirtualFileSystem::MakeDir(const string& path) {
5151
return true; // success
5252
}
5353

54-
string VirtualFileSystem::ReadFile(const string& path, string* err) {
54+
string VirtualFileSystem::ReadFile(const string& path, string* /* err */) {
5555
files_read_.push_back(path);
5656
FileMap::iterator i = files_.find(path);
5757
if (i != files_.end())

0 commit comments

Comments
 (0)