diff options
author | Erich Eckner <git@eckner.net> | 2017-12-10 02:26:45 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-12-10 02:26:45 +0100 |
commit | 0d3d8c3405202d1b43a9d27aa17f2c707f33336a (patch) | |
tree | f24a0fe669ae7477d0377d1b2f863d98150ab137 | |
parent | 9ed1010f77e7b3dd67dced158e001b53af48cae6 (diff) | |
download | packages-0d3d8c3405202d1b43a9d27aa17f2c707f33336a.tar.xz |
community/ceph: fix implicit fall through
-rw-r--r-- | community/ceph/36375de76fb2b5a43d33154d0754551b1f71544f.patch | 15 | ||||
-rw-r--r-- | community/ceph/PKGBUILD | 3 |
2 files changed, 18 insertions, 0 deletions
diff --git a/community/ceph/36375de76fb2b5a43d33154d0754551b1f71544f.patch b/community/ceph/36375de76fb2b5a43d33154d0754551b1f71544f.patch new file mode 100644 index 00000000..2d32720d --- /dev/null +++ b/community/ceph/36375de76fb2b5a43d33154d0754551b1f71544f.patch @@ -0,0 +1,15 @@ +diff --git a/src/rocksdb/util/murmurhash.cc b/src/rocksdb/util/murmurhash.cc +index 334ed898ea..4d71d58908 100644 +--- a/src/rocksdb/util/murmurhash.cc ++++ b/src/rocksdb/util/murmurhash.cc +@@ -113,8 +113,8 @@ unsigned int MurmurHash2 ( const void * key, int len, unsigned int seed ) + + switch(len) + { +- case 3: h ^= data[2] << 16; +- case 2: h ^= data[1] << 8; ++ case 3: h ^= data[2] << 16; // fallthrough ++ case 2: h ^= data[1] << 8; // fallthrough + case 1: h ^= data[0]; + h *= m; + }; diff --git a/community/ceph/PKGBUILD b/community/ceph/PKGBUILD new file mode 100644 index 00000000..103d1913 --- /dev/null +++ b/community/ceph/PKGBUILD @@ -0,0 +1,3 @@ +# https://github.com/ceph/rocksdb/commit/36375de76fb2b5a43d33154d0754551b1f71544f.patch +source+=('36375de76fb2b5a43d33154d0754551b1f71544f.patch') +sha512sum+=('46b368b91c09a0a2271f60a83d7245575244d643bf39e8a2ab727fcd9e3aa4806e5f9f32565dd3d753b25cfca57116431edae6a10199fa8f8611ea3860d6a748') |