Fix compiler warnings about unused variables in wire_format.h

This commit is contained in:
Aurimas Liutikas 2017-02-10 16:23:49 -08:00
parent ef927cc428
commit 9079079ec0

View File

@ -327,6 +327,9 @@ inline void WireFormat::VerifyUTF8StringNamedField(
#ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED
WireFormatLite::VerifyUtf8String(
data, size, static_cast<WireFormatLite::Operation>(op), field_name);
#else
// Avoid the compiler warning about unused variables.
(void)data; (void)size; (void)op; (void)field_name;
#endif
}