Fixed some warnings.

This commit is contained in:
Maxim Pimenov 2017-03-13 00:33:56 +03:00 committed by Sergey Yershov
parent 89c2d7d4d8
commit b25b0f0c08
3 changed files with 1 additions and 4 deletions

View file

@ -598,8 +598,6 @@ void ProcessOsmElementsFromXML(SourceReader & stream, function<void(OsmElement *
template <typename TCache>
void BuildIntermediateDataFromO5M(SourceReader & stream, TCache & cache, TownsDumper & towns)
{
using TType = osm::O5MSource::EntityType;
osm::O5MSource dataset([&stream](uint8_t * buffer, size_t size)
{
return stream.Read(reinterpret_cast<char *>(buffer), size);

View file

@ -166,6 +166,7 @@ void CrossMwmIndexGraph::InsertWholeMwmTransitionSegments(NumMwmId numMwmId)
node.m_point, transitionSegments.m_ingoing);
});
auto const p = m_transitionCache.emplace(numMwmId, move(transitionSegments));
UNUSED_VALUE(p);
ASSERT(p.second, ("Mwm num id:", numMwmId, "has been inserted before. Country file name:",
mapping->GetCountryName()));
};

View file

@ -281,8 +281,6 @@ void MatchFeaturesInTrie(SearchTrieRequest<DFA> const & request,
trie::Iterator<ValueList<Value>> const & trieRoot, Filter const & filter,
ToDo && toDo)
{
using Iterator = trie::Iterator<ValueList<Value>>;
TrieValuesHolder<Filter, Value> categoriesHolder(filter);
bool const categoriesMatched = MatchCategoriesInTrie(request, trieRoot, categoriesHolder);