From 0d3d8c3405202d1b43a9d27aa17f2c707f33336a Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 10 Dec 2017 02:26:45 +0100 Subject: community/ceph: fix implicit fall through --- .../ceph/36375de76fb2b5a43d33154d0754551b1f71544f.patch | 15 +++++++++++++++ community/ceph/PKGBUILD | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 community/ceph/36375de76fb2b5a43d33154d0754551b1f71544f.patch create mode 100644 community/ceph/PKGBUILD 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') -- cgit v1.2.3-70-g09d2