From 3bff4c070a96030f6fddcbabb63b9ffa9799e8e5 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 21 Jan 2016 06:25:19 -0800 Subject: [PATCH] fix compiler warning --- xwords4/relay/dbmgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xwords4/relay/dbmgr.cpp b/xwords4/relay/dbmgr.cpp index 5d3309b8c..d995d58b0 100644 --- a/xwords4/relay/dbmgr.cpp +++ b/xwords4/relay/dbmgr.cpp @@ -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 {