From 9079079ec0dac15700400a8c86b12595e9524901 Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Fri, 10 Feb 2017 16:23:49 -0800 Subject: Fix compiler warnings about unused variables in wire_format.h --- src/google/protobuf/wire_format.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/google/protobuf/wire_format.h') diff --git a/src/google/protobuf/wire_format.h b/src/google/protobuf/wire_format.h index de8ea574..5e9aca52 100644 --- a/src/google/protobuf/wire_format.h +++ b/src/google/protobuf/wire_format.h @@ -327,6 +327,9 @@ inline void WireFormat::VerifyUTF8StringNamedField( #ifdef GOOGLE_PROTOBUF_UTF8_VALIDATION_ENABLED WireFormatLite::VerifyUtf8String( data, size, static_cast(op), field_name); +#else + // Avoid the compiler warning about unused variables. + (void)data; (void)size; (void)op; (void)field_name; #endif } -- cgit v1.2.3