jieluo@google.com пре 11 година
родитељ
комит
91e32ac64d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/google/protobuf/descriptor.cc

+ 2 - 2
src/google/protobuf/descriptor.cc

@@ -227,11 +227,11 @@ struct PointerStringPairHash {
            cstring_hash(p.second);
            cstring_hash(p.second);
   }
   }
 
 
+#ifdef _MSC_VER
   // Used only by MSVC and platforms where hash_map is not available.
   // 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 bucket_size = 4;
   static const size_t min_buckets = 8;
   static const size_t min_buckets = 8;
+#endif
   inline bool operator()(const PointerStringPair& a,
   inline bool operator()(const PointerStringPair& a,
                          const PointerStringPair& b) const {
                          const PointerStringPair& b) const {
     if (a.first < b.first) return true;
     if (a.first < b.first) return true;