aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2019-08-14 16:55:11 -0700
committerColin Cross <ccross@android.com>2019-09-06 13:59:47 -0700
commit12e02ca37c13c9318e648dad5fee5cb7eb67387d (patch)
tree72ede332c097ede5bcff4c22aabe6ec6e8ace962 /src
parentfb6f216367d2e777999e5d6cb2d17f96542d643a (diff)
downloadprotobuf-12e02ca37c13c9318e648dad5fee5cb7eb67387d.tar.gz
Fix unused parameter warning in clang with NDEBUG
Bug: 117607748 Test: m checkbuild Change-Id: Ide9a5bb736e6a1483e4745d42c6feee23eb1ae46 Merged-In: Ide9a5bb736e6a1483e4745d42c6feee23eb1ae46
Diffstat (limited to 'src')
-rw-r--r--src/google/protobuf/parse_context.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/google/protobuf/parse_context.h b/src/google/protobuf/parse_context.h
index 72355f81c..60cb0ca64 100644
--- a/src/google/protobuf/parse_context.h
+++ b/src/google/protobuf/parse_context.h
@@ -616,7 +616,9 @@ inline PROTOBUF_MUST_USE_RESULT const char* InlineGreedyStringParserUTF8Verify(
auto p = InlineGreedyStringParser(s, ptr, ctx);
#ifndef NDEBUG
VerifyUTF8(*s, field_name);
-#endif // !NDEBUG
+#else
+ (void)field_name;
+#endif
return p;
}