[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
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
||||
#endif
|
||||
|
||||
namespace cityhash::detail {
|
||||
|
||||
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_
|
||||
|
Loading…
Reference in New Issue
Block a user