diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2017-02-13 10:26:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 10:26:09 -0800 |
commit | aa78aeba98f7a3b7648d849ddcf688407c4d6d34 (patch) | |
tree | 839f513e21e70fbe84aea42b6dd10c912e690e5c | |
parent | 74eb9a0a304a3261f3c83e100f51081986ac8ba6 (diff) | |
parent | 9079079ec0dac15700400a8c86b12595e9524901 (diff) | |
download | protobuf-aa78aeba98f7a3b7648d849ddcf688407c4d6d34.tar.gz protobuf-aa78aeba98f7a3b7648d849ddcf688407c4d6d34.tar.bz2 protobuf-aa78aeba98f7a3b7648d849ddcf688407c4d6d34.zip |
Merge pull request #2704 from liutikas/master
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 } |