]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
De-const the empty maps.
authorMatthew Barr <matthew.barr@intel.com>
Fri, 22 Sep 2017 04:23:05 +0000 (14:23 +1000)
committerMatthew Barr <matthew.barr@intel.com>
Fri, 22 Sep 2017 05:17:56 +0000 (15:17 +1000)
Clang 3.8 complains about attempting to default init const objects
without a user-provided constructor.

src/nfagraph/ng_limex.cpp

index c4147a306350b9f83b3c5d91af43fa5eeb50e3f2..922100e7a0a8ff487cf4a985757abf71b05f4540 100644 (file)
@@ -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<NFAVertex> zombies;
-    const unordered_map<NFAVertex, NFAStateSet> reportSquashMap;
-    const unordered_map<NFAVertex, NFAStateSet> squashMap;
+    unordered_map<NFAVertex, NFAStateSet> reportSquashMap;
+    unordered_map<NFAVertex, NFAStateSet> squashMap;
 
     return countAccelStates(*h, state_ids, repeats, reportSquashMap, squashMap,
                             tops, zombies, cc);