diff options
author | Jose <jose@zeroc.com> | 2012-12-27 23:20:00 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2012-12-27 23:20:00 +0100 |
commit | 05fe914f6f78c8f7bb3f4530d68b2926bf2cea51 (patch) | |
tree | f171ab75496f6dc5e5b2cec5e92f8a46049e9a1d /cpp/src/Freeze/MapI.cpp | |
parent | Fixed (ICE-5161) - Strange xxx ruby library names (diff) | |
download | ice-05fe914f6f78c8f7bb3f4530d68b2926bf2cea51.tar.bz2 ice-05fe914f6f78c8f7bb3f4530d68b2926bf2cea51.tar.xz ice-05fe914f6f78c8f7bb3f4530d68b2926bf2cea51.zip |
Fixed warnings related to ICE-5157
Diffstat (limited to 'cpp/src/Freeze/MapI.cpp')
-rw-r--r-- | cpp/src/Freeze/MapI.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/Freeze/MapI.cpp b/cpp/src/Freeze/MapI.cpp index 1e4138e9e9c..ae21ce3302f 100644 --- a/cpp/src/Freeze/MapI.cpp +++ b/cpp/src/Freeze/MapI.cpp @@ -759,9 +759,13 @@ Freeze::IteratorHelperI::set(const Value& value) try { +#ifndef NDEBUG int err; err = _dbc->put(&dbKey, &dbValue, DB_CURRENT); assert(err == 0); +#else + _dbc->put(&dbKey, &dbValue, DB_CURRENT); +#endif } catch(const ::DbDeadlockException& dx) { @@ -1381,9 +1385,13 @@ Freeze::MapHelperI::clear() try { u_int32_t count; +#ifndef NDEBUG int err; err = _db->truncate(txn, &count, txn != 0 ? 0 : DB_AUTO_COMMIT); assert(err == 0); +#else + _db->truncate(txn, &count, txn != 0 ? 0 : DB_AUTO_COMMIT); +#endif break; } catch(const ::DbDeadlockException& dx) |