remove gcc 4.0 warnings, Thanks to Lukas Fittl

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@410 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
syntheticpp 2006-01-05 00:01:23 +00:00
parent dd7235322b
commit 4a676debee
2 changed files with 21 additions and 10 deletions

View file

@ -10,12 +10,15 @@
// without express or implied warranty.
////////////////////////////////////////////////////////////////////////////////
#pragma warning (disable : 4786) // Get rid of browser information too long names
#ifdef _MSC_VER
#pragma warning (disable : 4786) // Get rid of browser information too long names
#ifdef _DEBUG
#pragma warning (disable : 4786)
#endif
#endif
#include <stdio.h>
#include <list>
@ -61,7 +64,7 @@ template <class String>
String RandomString(const String* /* model */, unsigned int maxSize)
{
String result(random(0, maxSize), '\0');
int i = 0;
size_t i = 0;
for (; i != result.size(); ++i)
{
result[i] = random('a', 'z');