aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google
diff options
context:
space:
mode:
authorGravatar Aurimas Liutikas <aurimas@google.com>2017-02-22 14:14:13 -0800
committerGravatar Aurimas Liutikas <aurimas@google.com>2017-02-22 14:14:13 -0800
commita434bfc232de09de7d3ebc963290c960462212cb (patch)
treec06e9e4cb0653d3031651138989558a654581a34 /src/google
parent1a8cbfd355603e094858cbfdf5999b860dbab13f (diff)
Fix compiler warnings about unused variables in generated_message_reflection.h
Diffstat (limited to 'src/google')
-rw-r--r--src/google/protobuf/generated_message_reflection.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/google/protobuf/generated_message_reflection.h b/src/google/protobuf/generated_message_reflection.h
index 2e65787f..8b1362a2 100644
--- a/src/google/protobuf/generated_message_reflection.h
+++ b/src/google/protobuf/generated_message_reflection.h
@@ -674,6 +674,8 @@ class LIBPROTOBUF_EXPORT GeneratedMessageReflection PROTOBUF_FINAL
template<typename To, typename From>
inline To dynamic_cast_if_available(From from) {
#if defined(GOOGLE_PROTOBUF_NO_RTTI) || (defined(_MSC_VER)&&!defined(_CPPRTTI))
+ // Avoid the compiler warning about unused variables.
+ (void)from;
return NULL;
#else
return dynamic_cast<To>(from);