From 96165a054971d4dd5ad3dd5f440d2597b0d573d0 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sun, 2 Sep 2012 22:03:05 +0300 Subject: [PATCH] Warning fix --- yg/resource_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yg/resource_manager.cpp b/yg/resource_manager.cpp index 7f324a8c09..905e0bd31d 100644 --- a/yg/resource_manager.cpp +++ b/yg/resource_manager.cpp @@ -147,10 +147,12 @@ namespace yg void ResourceManager::StoragePoolParams::scaleMemoryUsage(double k) { +#ifndef OMIM_PRODUCTION int oldMemoryUsage = memoryUsage(); int oldVBSize = m_vbSize; int oldIBSize = m_ibSize; int oldStoragesCount = m_storagesCount; +#endif if (!m_isFixedBufferSize) { @@ -270,10 +272,12 @@ namespace yg void ResourceManager::TexturePoolParams::scaleMemoryUsage(double k) { +#ifndef OMIM_PRODUCTION int oldTexCount = m_texCount; int oldTexWidth = m_texWidth; int oldTexHeight = m_texHeight; int oldMemoryUsage = memoryUsage(); +#endif if (!m_isWidthFixed || !m_isHeightFixed) {