diff options
author | Abseil Team <absl-team@google.com> | 2022-07-13 08:44:06 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-07-13 08:44:42 -0700 |
commit | d2422b19e9ba41c952db1ed5514bb68114c2be15 (patch) | |
tree | 5a55015a00809aaa4aeb431b4a4093bcbac72384 /absl | |
parent | 3d0956d139933f7906a59a5234d58aabdbb12576 (diff) |
Fix -Warray-parameter warning
Clang recently added this warning which flags inconsistencies between
array parameters in function declarations.
See https://crbug.com/1343303
PiperOrigin-RevId: 460725261
Change-Id: I57b1e99f13698c947e948c6024e3f6f4642ea189
Diffstat (limited to 'absl')
-rw-r--r-- | absl/hash/internal/low_level_hash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/hash/internal/low_level_hash.cc b/absl/hash/internal/low_level_hash.cc index 6f9cb9c7..d288f3ec 100644 --- a/absl/hash/internal/low_level_hash.cc +++ b/absl/hash/internal/low_level_hash.cc @@ -40,7 +40,7 @@ static uint64_t Mix(uint64_t v0, uint64_t v1) { } uint64_t LowLevelHash(const void* data, size_t len, uint64_t seed, - const uint64_t salt[]) { + const uint64_t salt[5]) { const uint8_t* ptr = static_cast<const uint8_t*>(data); uint64_t starting_length = static_cast<uint64_t>(len); uint64_t current_state = seed ^ salt[0]; |