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
pull/1223/head
Abseil Team 2 years ago committed by Copybara-Service
parent 3d0956d139
commit d2422b19e9
  1. 2
      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, 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); const uint8_t* ptr = static_cast<const uint8_t*>(data);
uint64_t starting_length = static_cast<uint64_t>(len); uint64_t starting_length = static_cast<uint64_t>(len);
uint64_t current_state = seed ^ salt[0]; uint64_t current_state = seed ^ salt[0];

Loading…
Cancel
Save