Skip to content

Commit

Permalink
Suppress fallthrough warnings
Browse files Browse the repository at this point in the history
Allows compilation when -Werror specified.
  • Loading branch information
gaul authored and yonik committed Jul 30, 2019
1 parent 94199ef commit a239ff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util/hash/MurmurHash3.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public static final long getLongLittleEndian(byte[] buf, int offset) {


/** Returns the MurmurHash3_x86_32 hash. */
@SuppressWarnings("fallthrough")
public static int murmurhash3_x86_32(byte[] data, int offset, int len, int seed) {

final int c1 = 0xcc9e2d51;
Expand Down Expand Up @@ -236,6 +237,7 @@ else if (code < 0xD800 || code > 0xDFFF || pos>=end) {


/** Returns the MurmurHash3_x64_128 hash, placing the result in "out". */
@SuppressWarnings("fallthrough")
public static void murmurhash3_x64_128(byte[] key, int offset, int len, int seed, LongPair out) {
// The original algorithm does have a 32 bit unsigned seed.
// We have to mask to match the behavior of the unsigned types and prevent sign extension.
Expand Down

0 comments on commit a239ff5

Please sign in to comment.