Selectively and temporary disabled warning about unknown preprocessor declarative for msvc when using specific GCC instruction.

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
Dominique Fuchs 2019-09-08 02:07:52 +02:00
parent b4dee67bf5
commit 8329de4cee

View file

@ -207,7 +207,10 @@ static inline uint64_t c_jhash64(const uint8_t *k, uint64_t length, uint64_t int
/* handle the last 23 bytes */
c += length;
switch(len) {
#pragma warning(push)
#pragma warning(disable:4068)
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma warning(pop)
case 23: c+=((uint64_t)k[22]<<56);
case 22: c+=((uint64_t)k[21]<<48);
case 21: c+=((uint64_t)k[20]<<40);