The leveldb build warns about a maybe not initialized variable. This warning did show on clang already and has been silenced, but the option to slient differs in GCC so it's added as well.
The protobuf function SerializeToString() is marked nodiscard, so we need to check the returned bool before the out parameter can be used.