summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-02-16 12:45:04 -0500
committerRob Clark <[email protected]>2016-02-18 17:10:55 -0500
commita13442ac6764608da6639f489be0ad89d81b1867 (patch)
treefe25db0cde5e71b1be33ebfa2cced1200f8c26c9
parent1c694a6c20da21f31c584fd41d28e2f03522617d (diff)
util: fix new gcc6 warnings
src/util/hash_table.h:111:23: warning: ‘_mesa_fnv32_1a_offset_bias’ defined but not used [-Wunused-const-variable] static const uint32_t _mesa_fnv32_1a_offset_bias = 2166136261u; ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Rob Clark <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
-rw-r--r--src/util/hash_table.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/hash_table.h b/src/util/hash_table.h
index 85b013cac24..c69abfa3e64 100644
--- a/src/util/hash_table.h
+++ b/src/util/hash_table.h
@@ -108,7 +108,9 @@ static inline uint32_t _mesa_hash_pointer(const void *pointer)
return _mesa_hash_data(&pointer, sizeof(pointer));
}
-static const uint32_t _mesa_fnv32_1a_offset_bias = 2166136261u;
+enum {
+ _mesa_fnv32_1a_offset_bias = 2166136261u,
+};
static inline uint32_t
_mesa_fnv32_1a_accumulate_block(uint32_t hash, const void *data, size_t size)