这里可能误用逗号运算符

Sha*_*ain 6 ios cocoapods firebase

在更新到推荐的pod设置后,我在Xcode中收到警告.警告是

Possible misuse of comma operator here
Run Code Online (Sandbox Code Playgroud)

建议修复

Cast expression to void to silence warning
Run Code Online (Sandbox Code Playgroud)

警告发生在leveldb-library/db/c.cc的开始和限制键:

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(
      // Pass NULL Slice if corresponding "const char*" is NULL
      (start_key ? (a = Slice(start_key, start_key_len), &a) : NULL),
      (limit_key ? (b = Slice(limit_key, limit_key_len), &b) : NULL));
}
Run Code Online (Sandbox Code Playgroud)

有没有其他人有同样的或知道是什么导致它?我正在运行Cocoapods 1.2.0.

Pau*_*ien 4

pod update现在,在 leveldb 库 CocoaPod 版本 1.20之后,构建 leveldb 时不会出现警告。