diff --git a/src/google/protobuf/extension_set.cc b/src/google/protobuf/extension_set.cc index 6629ec0424..ff2fc35641 100644 --- a/src/google/protobuf/extension_set.cc +++ b/src/google/protobuf/extension_set.cc @@ -280,7 +280,7 @@ void ExtensionSet::ClearExtension(int number) { namespace { -enum Cardinality { +enum { REPEATED, OPTIONAL }; diff --git a/src/google/protobuf/stubs/common.cc b/src/google/protobuf/stubs/common.cc index 7c17d97278..f1a688dc11 100644 --- a/src/google/protobuf/stubs/common.cc +++ b/src/google/protobuf/stubs/common.cc @@ -342,7 +342,6 @@ uint32 ghtonl(uint32 x) { namespace internal { -typedef void OnShutdownFunc(); struct ShutdownData { ~ShutdownData() { std::reverse(functions.begin(), functions.end());