summaryrefslogtreecommitdiffstats
path: root/src/graph.cc
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-05 19:53:33 (GMT)
committerEvan Martin <martine@danga.com>2011-12-05 20:59:38 (GMT)
commit3d17415c4672348d0892e71b15d850a66f95a095 (patch)
tree3f81edc755a5a286a240c1ea510a3f2d0800a9f3 /src/graph.cc
parent3b9f727e2b8f04d5f0cac4ede5149a0beceef019 (diff)
downloadNinja-3d17415c4672348d0892e71b15d850a66f95a095.zip
Ninja-3d17415c4672348d0892e71b15d850a66f95a095.tar.gz
Ninja-3d17415c4672348d0892e71b15d850a66f95a095.tar.bz2
disable the 'unused parameter' warning
It was firing too often, and hadn't uncovered any bugs.
Diffstat (limited to 'src/graph.cc')
-rw-r--r--src/graph.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph.cc b/src/graph.cc
index 2cdba80..d881280 100644
--- a/src/graph.cc
+++ b/src/graph.cc
@@ -203,8 +203,8 @@ bool Edge::LoadDepFile(State* state, DiskInterface* disk_interface,
// Check that this depfile matches our output.
StringPiece opath = StringPiece(outputs_[0]->file_->path_);
if (opath != makefile.out_) {
- *err = "expected makefile to mention '" + outputs_[0]->file_->path_ + "', "
- "got '" + makefile.out_.AsString() + "'";
+ *err = "expected depfile '" + path + "' to mention '" +
+ outputs_[0]->file_->path_ + "', got '" + makefile.out_.AsString() + "'";
return false;
}