From a09e4db7da4cd3755d47c85e31a326a13c062fe3 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/nostalgia/deps/ox/deps/cityhash/include/cityhash/city.h b/deps/nostalgia/deps/ox/deps/cityhash/include/cityhash/city.h index c99bc7c..9c9a2a8 100644 --- a/deps/nostalgia/deps/ox/deps/cityhash/include/cityhash/city.h +++ b/deps/nostalgia/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_