diff options
author | Alex Zolotarev <deathbaba@gmail.com> | 2011-01-19 02:56:15 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:10:35 +0300 |
commit | 3aa1625c45e102548704da49cb7c85598f728b8f (patch) | |
tree | 324bb9dd8814b459549ea65ef9be41061c8f9db7 /indexer/feature_impl.hpp | |
parent | 6292d9f06d5741cfe749ad199006ba6e299cb520 (diff) |
Warning fixes
Diffstat (limited to 'indexer/feature_impl.hpp')
-rw-r--r-- | indexer/feature_impl.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/feature_impl.hpp b/indexer/feature_impl.hpp index 2f2feb1699..ab0ba3e766 100644 --- a/indexer/feature_impl.hpp +++ b/indexer/feature_impl.hpp @@ -128,9 +128,11 @@ namespace feature template <class TSink> void SaveTriangles(vector<m2::PointD> const & triangles, int64_t base, TSink & sink) { +#ifdef DEBUG uint32_t const count = triangles.size(); ASSERT_GREATER ( count, 0, () ); ASSERT_EQUAL ( count % 3, 0, (count) ); +#endif vector<int64_t> cells; detail::TransformPoints(triangles, cells); @@ -143,9 +145,11 @@ namespace feature { detail::ReadPoints(points, base, src); +#ifdef DEBUG uint32_t const count = points.size(); ASSERT_GREATER ( count, 0, () ); ASSERT_EQUAL ( count % 3, 0, (count) ); +#endif } |