summaryrefslogtreecommitdiff
path: root/cpp/test
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test')
-rw-r--r--cpp/test/Freeze/dbmap/Client.cpp8
-rw-r--r--cpp/test/Freeze/dbmap/dbmap.dsp6
2 files changed, 6 insertions, 8 deletions
diff --git a/cpp/test/Freeze/dbmap/Client.cpp b/cpp/test/Freeze/dbmap/Client.cpp
index 3b83d9de0d8..3a8d6218f99 100644
--- a/cpp/test/Freeze/dbmap/Client.cpp
+++ b/cpp/test/Freeze/dbmap/Client.cpp
@@ -491,11 +491,11 @@ run(const CommunicatorPtr& communicator, const string& envName, const string&dbN
populateDB(connection, m);
size_t length = alphabet.size();
- for(size_t j = 0; j < length; ++j)
+ for(size_t k = 0; k < length; ++k)
{
- p = m.findByValue(static_cast<Int>(j));
+ p = m.findByValue(static_cast<Int>(k));
test(p != m.end());
- test(p->first == alphabet[j]);
+ test(p->first == alphabet[k]);
test(++p == m.end());
}
@@ -529,7 +529,7 @@ run(const CommunicatorPtr& communicator, const string& envName, const string&dbN
p.set(18);
test(false);
}
- catch(const DatabaseException& ex)
+ catch(const DatabaseException&)
{
// Expected
}
diff --git a/cpp/test/Freeze/dbmap/dbmap.dsp b/cpp/test/Freeze/dbmap/dbmap.dsp
index 94a7ce4acb4..9fd5a8f3617 100644
--- a/cpp/test/Freeze/dbmap/dbmap.dsp
+++ b/cpp/test/Freeze/dbmap/dbmap.dsp
@@ -120,8 +120,7 @@ USERDEP__DUMMY="..\..\..\bin\slice2freeze.exe" "..\..\..\lib\slice.lib"
InputPath=dummy.ice
BuildCmds= \
- ..\..\..\bin\slice2freeze.exe --dict Test::ByteIntMap,byte,int --dict-index Test::ByteIntMap ByteIntMap \
-
+ ..\..\..\bin\slice2freeze.exe --dict Test::ByteIntMap,byte,int --dict-index Test::ByteIntMap ByteIntMap
"ByteIntMap.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)
@@ -137,8 +136,7 @@ USERDEP__DUMMY="..\..\..\bin\slice2freeze.exe"
InputPath=dummy.ice
BuildCmds= \
- ..\..\..\bin\slice2freeze.exe --dict Test::ByteIntMap,byte,int --dict-index Test::ByteIntMap ByteIntMap \
-
+ ..\..\..\bin\slice2freeze.exe --dict Test::ByteIntMap,byte,int --dict-index Test::ByteIntMap ByteIntMap
"ByteIntMap.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
$(BuildCmds)