mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix compiler warning
This commit is contained in:
parent
7d62614ced
commit
3bff4c070a
1 changed files with 3 additions and 1 deletions
|
@ -382,7 +382,9 @@ DBMgr::RegisterDevice( const DevID* host, int clientVersion,
|
|||
// coming from random, but test with increasing values initially to make
|
||||
// sure duplicates are detected.
|
||||
const char* devidStr = host->m_devIDString.c_str();
|
||||
for ( bool success = false, ii = 0; !success; ++ii ) {
|
||||
int ii;
|
||||
bool success;
|
||||
for ( success = false, ii = 0; !success; ++ii ) {
|
||||
assert( 10 > ii ); // better to check that we're looping BECAUSE
|
||||
// of uniqueness problem.
|
||||
do {
|
||||
|
|
Loading…
Reference in a new issue