From e44fa288fdda8f0e19f43ab971c4c6dcad1be870 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 26 Nov 2024 21:58:39 -0600 Subject: [PATCH] [cityhash] Add pragmas to ignore unsafe buffer warnings --- deps/ox/deps/cityhash/include/cityhash/city.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deps/ox/deps/cityhash/include/cityhash/city.h b/deps/ox/deps/cityhash/include/cityhash/city.h index c99bc7c0..9c9a2a87 100644 --- a/deps/ox/deps/cityhash/include/cityhash/city.h +++ b/deps/ox/deps/cityhash/include/cityhash/city.h @@ -104,6 +104,11 @@ using size_t = decltype(alignof(int)); #endif +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunsafe-buffer-usage" +#endif + namespace cityhash::detail { template @@ -671,4 +676,8 @@ constexpr uint128 CityHash128(const char *s, size_t len) noexcept { } +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + #endif // CITY_HASH_H_