I get warnings in Xcode after updating to the recommended module settings. Warning
Possible misuse of comma operator here
with the proposed fix
Cast expression to void to silence warning
Warnings occur in the leveldb-library / db / c.cc on the start and end keys:
void leveldb_compact_range(
leveldb_t* db,
const char* start_key, size_t start_key_len,
const char* limit_key, size_t limit_key_len) {
Slice a, b;
db->rep->CompactRange(
(start_key ? (a = Slice(start_key, start_key_len), &a) : NULL),
(limit_key ? (b = Slice(limit_key, limit_key_len), &b) : NULL));
}
Has anyone else had the same thing or knew what caused it? I am running Cocoapods 1.2.0.
source
share