From 95b2f8aa8e0b140ba6d90126733e7c357df92059 Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Tue, 22 Oct 2019 21:52:55 +0300 Subject: build.cc: constify a map in BuildStatus Modifying a key in C++ associative containers is UB. Signed-off-by: Konstantin Kharlamov --- src/build.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 RunningEdgeMap; + typedef map RunningEdgeMap; RunningEdgeMap running_edges_; /// Prints progress output. -- cgit v1.2.1