summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-10-22 18:52:55 (GMT)
committerKonstantin Kharlamov <Hi-Angel@yandex.ru>2019-11-20 21:40:11 (GMT)
commit95b2f8aa8e0b140ba6d90126733e7c357df92059 (patch)
tree6f833276ffe3b2ce3acddbd7870c4fcde244a519 /src
parent2cb0370e9ac15151941b451ff5fd5a440527209a (diff)
downloadNinja-95b2f8aa8e0b140ba6d90126733e7c357df92059.zip
Ninja-95b2f8aa8e0b140ba6d90126733e7c357df92059.tar.gz
Ninja-95b2f8aa8e0b140ba6d90126733e7c357df92059.tar.bz2
build.cc: constify a map in BuildStatus
Modifying a key in C++ associative containers is UB. Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Diffstat (limited to 'src')
-rw-r--r--src/build.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.h b/src/build.h
index 322291f..f8d877b 100644
--- a/src/build.h
+++ b/src/build.h
@@ -271,7 +271,7 @@ struct BuildStatus {
int started_edges_, finished_edges_, total_edges_;
/// Map of running edge to time the edge started running.
- typedef map<Edge*, int> RunningEdgeMap;
+ typedef map<const Edge*, int> RunningEdgeMap;
RunningEdgeMap running_edges_;
/// Prints progress output.