From: Matthew Barr Date: Fri, 22 Sep 2017 04:23:05 +0000 (+1000) Subject: De-const the empty maps. X-Git-Tag: v4.6.0^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5021d7ab78c5867131608b8b06bf84afa035c15d;p=thirdparty%2Fvectorscan.git De-const the empty maps. Clang 3.8 complains about attempting to default init const objects without a user-provided constructor. --- diff --git a/src/nfagraph/ng_limex.cpp b/src/nfagraph/ng_limex.cpp index c4147a30..922100e7 100644 --- a/src/nfagraph/ng_limex.cpp +++ b/src/nfagraph/ng_limex.cpp @@ -851,8 +851,8 @@ u32 countAccelStates(const NGHolder &g, const ReportManager *rm, // Should have no bearing on accel calculation, so we leave these empty. const set zombies; - const unordered_map reportSquashMap; - const unordered_map squashMap; + unordered_map reportSquashMap; + unordered_map squashMap; return countAccelStates(*h, state_ids, repeats, reportSquashMap, squashMap, tops, zombies, cc);