From 91e32ac64dc63417ca5ce81475f88e85994aacf3 Mon Sep 17 00:00:00 2001 From: "jieluo@google.com" Date: Fri, 1 Aug 2014 22:17:11 +0000 Subject: [PATCH] add #ifdef _MSC_VER --- src/google/protobuf/descriptor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/google/protobuf/descriptor.cc b/src/google/protobuf/descriptor.cc index d57b701fc3..17e1cc1580 100644 --- a/src/google/protobuf/descriptor.cc +++ b/src/google/protobuf/descriptor.cc @@ -227,11 +227,11 @@ struct PointerStringPairHash { cstring_hash(p.second); } +#ifdef _MSC_VER // Used only by MSVC and platforms where hash_map is not available. - // These two lines produce unused warning, but do not delete them - // unless hash_map is available on MSVC and platforms. static const size_t bucket_size = 4; static const size_t min_buckets = 8; +#endif inline bool operator()(const PointerStringPair& a, const PointerStringPair& b) const { if (a.first < b.first) return true;