Warning fixes

This commit is contained in:
Alex Zolotarev 2013-03-04 15:48:25 +01:00 committed by Alex Zolotarev
parent b3acbebfba
commit 764f238764
3 changed files with 4 additions and 8 deletions

View file

@ -23,6 +23,7 @@ namespace
f.Write(string(size, c).c_str(), size);
}
#ifdef OMIM_OS_WINDOWS
void CheckFileOK(string const & name)
{
my::FileData f(name, my::FileData::OP_READ);
@ -34,6 +35,7 @@ namespace
f.Read(0, &buffer[0], size);
TEST ( equal(name.begin(), name.end(), buffer.begin()), () );
}
#endif
}
UNIT_TEST(FileData_ApiSmoke)

View file

@ -7,8 +7,8 @@
namespace feature
{
static int g_arrWorldScales[] = { 3, 5, 7, 9 }; // 9 = scales::GetUpperWorldScale()
static int g_arrCountryScales[] = { 10, 12, 14, 17 }; // 17 = scales::GetUpperScale()
static int const g_arrWorldScales[] = { 3, 5, 7, 9 }; // 9 = scales::GetUpperWorldScale()
static int const g_arrCountryScales[] = { 10, 12, 14, 17 }; // 17 = scales::GetUpperScale()
inline string GetTagForIndex(char const * prefix, int ind)
{

View file

@ -8,12 +8,6 @@ class Writer;
namespace ver
{
class VersionData
{
uint32_t m_mwmVer;
uint32_t m_timeStamp;
};
void WriteVersion(Writer & w);
uint32_t ReadVersion(ModelReaderPtr const & r);
}