diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nowhere> | 2015-01-27 15:44:38 +0000 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nowhere> | 2015-01-27 15:44:38 +0000 |
commit | f01c1441bc7226bf10cf032b2b699a151020cd14 (patch) | |
tree | 2b5ef38a523bf528105675ad3b3ac2aebcde06b0 | |
parent | 5446deaea7ffc29f6e09368cb6238da083969123 (diff) | |
download | protobuf-f01c1441bc7226bf10cf032b2b699a151020cd14.tar.gz protobuf-f01c1441bc7226bf10cf032b2b699a151020cd14.tar.bz2 protobuf-f01c1441bc7226bf10cf032b2b699a151020cd14.zip |
Fix illegal C++ use of reinterpret_cast<> to cast between nullptr_t and a pointer.
-rw-r--r-- | src/google/protobuf/compiler/cpp/cpp_service.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/cpp/cpp_service.cc b/src/google/protobuf/compiler/cpp/cpp_service.cc index a8f303da..226c2aa0 100644 --- a/src/google/protobuf/compiler/cpp/cpp_service.cc +++ b/src/google/protobuf/compiler/cpp/cpp_service.cc @@ -301,7 +301,7 @@ void ServiceGenerator::GenerateGetPrototype(RequestOrResponse which, printer->Print(vars_, " default:\n" " GOOGLE_LOG(FATAL) << \"Bad method index; this should never happen.\";\n" - " return *reinterpret_cast< ::google::protobuf::Message*>(NULL);\n" + " return *static_cast< ::google::protobuf::Message*>(NULL);\n" " }\n" "}\n" "\n"); |