From 8329de4ceed6765d46be58e99032ce659277d3dd Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Sun, 8 Sep 2019 02:07:52 +0200 Subject: [PATCH] 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> --- src/common/c_jhash.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/c_jhash.h b/src/common/c_jhash.h index cd1549d7e6..44043361a8 100644 --- a/src/common/c_jhash.h +++ b/src/common/c_jhash.h @@ -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);