Browse Source

inserted #pragma warning directive

master
despair 5 years ago
parent
commit
d232d510e1
  1. 5
      src/Murmur3.cpp

5
src/Murmur3.cpp

@ -12,6 +12,9 @@ @@ -12,6 +12,9 @@
//-----------------------------------------------------------------------------
// Platform-specific functions and macros
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic push
// Microsoft Visual Studio
#if defined(_MSC_VER)
@ -203,6 +206,7 @@ void MurmurHash3_x86_128 ( const void * key, const int len, @@ -203,6 +206,7 @@ void MurmurHash3_x86_128 ( const void * key, const int len,
uint32_t k3 = 0;
uint32_t k4 = 0;
// These are supposed to fall through
switch(len & 15) {
case 15: k4 ^= static_cast<unsigned int>(tail[14]) << 16;
case 14: k4 ^= static_cast<unsigned int>(tail[13]) << 8;
@ -335,3 +339,4 @@ void MurmurHash3_x64_128 ( const void * key, const int len, @@ -335,3 +339,4 @@ void MurmurHash3_x64_128 ( const void * key, const int len,
}
//-----------------------------------------------------------------------------
#pragma GCC diagnostic pop
Loading…
Cancel
Save