From 29b165c79e638514601d75a792d970f6b9bdf4e9 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Thu, 12 Sep 2013 20:31:41 +0300 Subject: [PATCH] Warning fix --- indexer/feature_visibility.cpp | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/indexer/feature_visibility.cpp b/indexer/feature_visibility.cpp index 62d01d381c..4d9c09fcce 100644 --- a/indexer/feature_visibility.cpp +++ b/indexer/feature_visibility.cpp @@ -102,12 +102,21 @@ namespace int m_scale; ClassifObject::FeatureGeoType m_ft; drule::KeysT & m_keys; +#ifdef DEBUG string & m_name; +#endif public: DrawRuleGetter(int scale, feature::EGeomType ft, - drule::KeysT & keys, string & name) - : m_scale(scale), m_ft(ClassifObject::FeatureGeoType(ft)), m_keys(keys), m_name(name) + drule::KeysT & keys +#ifdef DEBUG + , string & name +#endif + ) + : m_scale(scale), m_ft(ClassifObject::FeatureGeoType(ft)), m_keys(keys) +#ifdef DEBUG + , m_name(name) +#endif { } @@ -137,7 +146,11 @@ pair GetDrawRule(FeatureBase const & f, int level, ASSERT ( keys.empty(), () ); Classificator const & c = classif(); - DrawRuleGetter doRules(level, types.GetGeoType(), keys, names); + DrawRuleGetter doRules(level, types.GetGeoType(), keys +#ifdef DEBUG + , names +#endif + ); for (size_t i = 0; i < types.Size(); ++i) (void)c.ProcessObjects(types[i], doRules);