aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2017-02-13 10:26:09 -0800
committerGitHub <noreply@github.com>2017-02-13 10:26:09 -0800
commitaa78aeba98f7a3b7648d849ddcf688407c4d6d34 (patch)
tree839f513e21e70fbe84aea42b6dd10c912e690e5c /src
parent74eb9a0a304a3261f3c83e100f51081986ac8ba6 (diff)
parent9079079ec0dac15700400a8c86b12595e9524901 (diff)
downloadprotobuf-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
Diffstat (limited to 'src')
-rw-r--r--src/google/protobuf/wire_format.h3
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
}