Fix compile error in common.cc

pull/5142/head
Jeffrey Walton 6 years ago
parent e0de5edc21
commit 5193bedb41
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
  1. 3
      src/google/protobuf/stubs/common.cc

@ -354,7 +354,8 @@ struct ShutdownData {
};
static void RunZeroArgFunc(const void* arg) {
reinterpret_cast<void (*)()>(const_cast<void*>(arg))();
void (*func)() = reinterpret_cast<void (*)()>(const_cast<void*>(arg));
func();
}
void OnShutdown(void (*func)()) {

Loading…
Cancel
Save