Fixing JNI release build for gcc (#975)

This commit is contained in:
Tomas Kolda 2016-09-29 15:11:32 -06:00 committed by Adam Retter
parent 7260662b39
commit 13f7a01f61

View file

@ -60,7 +60,9 @@ jbyteArray Java_org_rocksdb_WriteBatchTest_getContents(
rocksdb::ParsedInternalKey ikey; rocksdb::ParsedInternalKey ikey;
memset(reinterpret_cast<void*>(&ikey), 0, sizeof(ikey)); memset(reinterpret_cast<void*>(&ikey), 0, sizeof(ikey));
bool parsed = rocksdb::ParseInternalKey(iter->key(), &ikey); bool parsed = rocksdb::ParseInternalKey(iter->key(), &ikey);
assert(parsed); if (!parsed) {
assert(parsed);
}
switch (ikey.type) { switch (ikey.type) {
case rocksdb::kTypeValue: case rocksdb::kTypeValue:
state.append("Put("); state.append("Put(");