[cityhash] Add pragmas to ignore unsafe buffer warnings
This commit is contained in:
parent
e13c6e812b
commit
e44fa288fd
@ -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_
|
||||||
|
Loading…
Reference in New Issue
Block a user