Commit a434bfc2 authored by Aurimas Liutikas's avatar Aurimas Liutikas

Fix compiler warnings about unused variables in generated_message_reflection.h

parent 1a8cbfd3
...@@ -674,6 +674,8 @@ class LIBPROTOBUF_EXPORT GeneratedMessageReflection PROTOBUF_FINAL ...@@ -674,6 +674,8 @@ class LIBPROTOBUF_EXPORT GeneratedMessageReflection PROTOBUF_FINAL
template<typename To, typename From> template<typename To, typename From>
inline To dynamic_cast_if_available(From from) { inline To dynamic_cast_if_available(From from) {
#if defined(GOOGLE_PROTOBUF_NO_RTTI) || (defined(_MSC_VER)&&!defined(_CPPRTTI)) #if defined(GOOGLE_PROTOBUF_NO_RTTI) || (defined(_MSC_VER)&&!defined(_CPPRTTI))
// Avoid the compiler warning about unused variables.
(void)from;
return NULL; return NULL;
#else #else
return dynamic_cast<To>(from); return dynamic_cast<To>(from);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment