diff --git a/src/google/protobuf/wire_format.h b/src/google/protobuf/wire_format.h index dec6774a32..b1b42a9d9a 100644 --- a/src/google/protobuf/wire_format.h +++ b/src/google/protobuf/wire_format.h @@ -357,8 +357,9 @@ inline size_t WireFormat::TagSize(int field_number, inline void WireFormat::VerifyUTF8String(const char* data, int size, WireFormat::Operation op) { #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED - WireFormatLite::VerifyUtf8String( - data, size, static_cast(op), nullptr); + WireFormatLite::VerifyUtf8String(data, size, + static_cast(op), + /* field_name = */ ""); #else // Avoid the compiler warning about unused variables. (void)data;