]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
crc32: suppress -Wimplicit-fallthrough warnings
authorJun Wu <quark@fb.com>
Thu, 1 Feb 2018 22:15:28 +0000 (14:15 -0800)
committersdong <siying.d@fb.com>
Mon, 12 Feb 2018 20:58:31 +0000 (12:58 -0800)
commit54c198457979b6cc06be4e7c07b5444ea609990c
treefd2e99041bfdea6c40c6817ffd5efc3e517d93ed
parent7ac544656d1de78c4da09f1e347ab0782308935c
crc32: suppress -Wimplicit-fallthrough warnings

Summary:
Workaround a bunch of "implicit-fallthrough" compiler errors, like:

```
util/crc32c.cc:533:7: error: this statement may fall through [-Werror=implicit-fallthrough=]
   crc = _mm_crc32_u64(crc, *(uint64_t*)(buf + offset));
       ^
util/crc32c.cc:1016:9: note: in expansion of macro ‘CRCsinglet’
         CRCsinglet(crc0, next, -2 * 8);
         ^~~~~~~~~~
util/crc32c.cc:1017:7: note: here
       case 1:
```
Closes https://github.com/facebook/rocksdb/pull/3339

Reviewed By: sagar0

Differential Revision: D6874736

Pulled By: quark-zju

fbshipit-source-id: eec9f3bc135e12fca336928d01711006d5c3cb16
util/crc32c.cc