Fix build + typo

This commit is contained in:
Robert Schulze 2022-03-17 11:35:23 +01:00
parent 08d3f7fa14
commit 6e1d7a31bc
No known key found for this signature in database
GPG Key ID: 15C08E29800B665D
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ public:
/// Parses the format schema, then parses the corresponding proto file, and returns the descriptor of the message type.
/// The function never returns nullptr, it throws an exception if it cannot load or parse the file.
const google::protobuf::Descriptor * getMessageTypeForFormatSchema(const FormatSchemaInfo & info, WithEnvelope withEnvelope);
const google::protobuf::Descriptor * getMessageTypeForFormatSchema(const FormatSchemaInfo & info, WithEnvelope with_envelope);
private:
class ImporterWithSourceTree;

View File

@ -2399,7 +2399,7 @@ namespace
};
/// Serializes a top-level envelope message in the protobuf schema.
/// "Envelope" means that the contained subtree of serializers is encosed in a message just once,
/// "Envelope" means that the contained subtree of serializers is enclosed in a message just once,
/// i.e. only when the first and the last row read/write trigger a read/write of the msg header.
class ProtobufSerializerEnvelope : public ProtobufSerializer
{
@ -2455,7 +2455,7 @@ namespace
}
int field_tag;
bool ret = reader->readFieldNumber(field_tag);
[[maybe_unused]] bool ret = reader->readFieldNumber(field_tag);
assert(ret);
serializer->readRow(row_num);