diff options
author | Aurimas Liutikas <aurimas@google.com> | 2017-02-10 16:23:49 -0800 |
---|---|---|
committer | Aurimas Liutikas <aurimas@google.com> | 2017-02-10 16:23:49 -0800 |
commit | 9079079ec0dac15700400a8c86b12595e9524901 (patch) | |
tree | 05f3571d01e0375fa1fb31711e66c9adb3cc7039 | |
parent | ef927cc428db7bf41d3a593a16a8f1a0fe6306c5 (diff) | |
download | protobuf-9079079ec0dac15700400a8c86b12595e9524901.tar.gz protobuf-9079079ec0dac15700400a8c86b12595e9524901.tar.bz2 protobuf-9079079ec0dac15700400a8c86b12595e9524901.zip |
Fix compiler warnings about unused variables in wire_format.h
-rw-r--r-- | src/google/protobuf/wire_format.h | 3 |
1 files changed, 3 insertions, 0 deletions
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<WireFormatLite::Operation>(op), field_name); +#else + // Avoid the compiler warning about unused variables. + (void)data; (void)size; (void)op; (void)field_name; #endif } |