[cityhash] Add pragmas to ignore unsafe buffer warnings

This commit is contained in:
Gary Talent 2024-11-26 21:58:39 -06:00
parent e13c6e812b
commit e44fa288fd

View File

@ -104,6 +104,11 @@ using size_t = decltype(alignof(int));
#endif #endif
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
#endif
namespace cityhash::detail { namespace cityhash::detail {
template<typename T> template<typename T>
@ -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_ #endif // CITY_HASH_H_