From 7d2fea2b6259fed03aab801a5df3fc13082bc3a1 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Tue, 25 Oct 2011 18:49:52 +0300 Subject: [PATCH] Warning fix --- indexer/feature_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp index 366586dcc9..89fb0f23d3 100644 --- a/indexer/feature_impl.hpp +++ b/indexer/feature_impl.hpp @@ -14,7 +14,7 @@ namespace feature str.reserve(strlen(prefix) + 1); str = prefix; - char arrChar[] = { '0', '1', '2', '3' }; + static char const arrChar[] = { '0', '1', '2', '3' }; STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrWorldScales) ); STATIC_ASSERT ( ARRAY_SIZE(arrChar) >= ARRAY_SIZE(g_arrCountryScales) ); ASSERT ( ind >= 0 && ind < ARRAY_SIZE(arrChar), (ind) );