mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 21:40:20 +01:00
util: make set's deleted_key_value declaration consistent with hash table one
This also silences following clang warnings:
no previous extern declaration for non-static variable 'deleted_key' [-Werror,-Wmissing-variable-declarations]
const void *deleted_key = &deleted_key_value;
^
no previous extern declaration for non-static variable 'deleted_key_value'
[-Werror,-Wmissing-variable-declarations]
uint32_t deleted_key_value;
^
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
f1ba51b940
commit
f4df2a196e
1 changed files with 2 additions and 2 deletions
|
|
@ -45,8 +45,8 @@
|
|||
* free to avoid exponential performance degradation as the hash table fills
|
||||
*/
|
||||
|
||||
uint32_t deleted_key_value;
|
||||
const void *deleted_key = &deleted_key_value;
|
||||
static const uint32_t deleted_key_value;
|
||||
static const void *deleted_key = &deleted_key_value;
|
||||
|
||||
static const struct {
|
||||
uint32_t max_entries, size, rehash;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue