diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-10-24 15:34:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 15:34:43 (GMT) |
commit | fccab7408a53b936fe1a6a527746a5119be71c66 (patch) | |
tree | c58f35a8d50e7516211f4dc82d40e37720cfa5b8 /src/hash_map.h | |
parent | d2045dedc39885e702176b2b5e05bc77024ae3aa (diff) | |
parent | 08ef815c7b55f28417b1a965eeab3640558d5f5a (diff) | |
download | Ninja-fccab7408a53b936fe1a6a527746a5119be71c66.zip Ninja-fccab7408a53b936fe1a6a527746a5119be71c66.tar.gz Ninja-fccab7408a53b936fe1a6a527746a5119be71c66.tar.bz2 |
Merge pull request #1417 from stefanb2/topic-silence-gcc-fallthrough-warnings
Silence GCC -Wimplicit-fallthrough warnings
Diffstat (limited to 'src/hash_map.h')
-rw-r--r-- | src/hash_map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hash_map.h b/src/hash_map.h index a91aeb9..55d2c9d 100644 --- a/src/hash_map.h +++ b/src/hash_map.h @@ -18,6 +18,7 @@ #include <algorithm> #include <string.h> #include "string_piece.h" +#include "util.h" // MurmurHash2, by Austin Appleby static inline @@ -40,7 +41,9 @@ unsigned int MurmurHash2(const void* key, size_t len) { } switch (len) { case 3: h ^= data[2] << 16; + NINJA_FALLTHROUGH; case 2: h ^= data[1] << 8; + NINJA_FALLTHROUGH; case 1: h ^= data[0]; h *= m; }; |