From 3659b7d642f657e6ce054f36d05def98be36e980 Mon Sep 17 00:00:00 2001 From: Daria Volvenkova Date: Wed, 9 Aug 2017 18:32:18 +0300 Subject: [PATCH] Minor warning fixes. --- drape/hw_texture_ios.mm | 4 ++-- drape_frontend/tile_info.cpp | 2 +- drape_frontend/user_mark_shapes.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drape/hw_texture_ios.mm b/drape/hw_texture_ios.mm index 87951b8a7a..f51430cf79 100644 --- a/drape/hw_texture_ios.mm +++ b/drape/hw_texture_ios.mm @@ -53,8 +53,8 @@ CVPixelBufferRef HWTextureAllocatorApple::CVCreatePixelBuffer(uint32_t width, ui CFDictionaryRef attrsRef = (__bridge CFDictionaryRef)attrs; - CVPixelBufferRef result; - CVReturn cvRetval; + CVPixelBufferRef result = nullptr; + CVReturn cvRetval = 0; switch (format) { case dp::RGBA8: diff --git a/drape_frontend/tile_info.cpp b/drape_frontend/tile_info.cpp index 4c3cfa91c1..4f8bc9abdc 100644 --- a/drape_frontend/tile_info.cpp +++ b/drape_frontend/tile_info.cpp @@ -45,7 +45,7 @@ void TileInfo::ReadFeatureIndex(MapDataProvider const & model) if (m_mwms.empty() || lastMwm != id.m_mwmId) { auto result = m_mwms.insert(id.m_mwmId); - ASSERT(result.second, ()); + VERIFY(result.second, ()); lastMwm = id.m_mwmId; } m_featureInfo.push_back(id); diff --git a/drape_frontend/user_mark_shapes.cpp b/drape_frontend/user_mark_shapes.cpp index 1e9cecde13..b1199c818f 100644 --- a/drape_frontend/user_mark_shapes.cpp +++ b/drape_frontend/user_mark_shapes.cpp @@ -243,7 +243,7 @@ void CacheUserLines(TileKey const & tileKey, ref_ptr texture float const vs = static_cast(df::VisualParams::Instance().GetVisualScale()); bool const simplify = tileKey.m_zoomLevel <= kLineSimplifyLevelEnd; - double sqrScale; + double sqrScale = 1.0; if (simplify) { double const currentScaleGtoP = 1.0 / GetScale(tileKey.m_zoomLevel);