Warning fixes

This commit is contained in:
Alex Zolotarev 2011-01-19 01:56:15 +02:00 committed by Alex Zolotarev
parent 6292d9f06d
commit 3aa1625c45
2 changed files with 6 additions and 1 deletions

View file

@ -336,7 +336,8 @@ namespace
template <class TSink> class BitSink
{
TSink & m_sink;
uint8_t m_pos, m_current;
uint8_t m_current;
uint8_t m_pos;
public:
BitSink(TSink & sink) : m_sink(sink), m_pos(0), m_current(0) {}

View file

@ -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
}