aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorVlad Golovkin <[email protected]>2017-05-30 02:51:32 +0300
committerNicolai Hähnle <[email protected]>2017-06-08 09:26:44 +0200
commitf4df2a196eb441dac91b323184534bfe3ba44262 (patch)
treeefaf04eb7197580636b4466430b8c8bda1c517a2 /src/util
parentf1ba51b940216b4cb235c869d1636ac42bb0c857 (diff)
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 <[email protected]>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/set.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/set.c b/src/util/set.c
index 99abefd0632..39250663954 100644
--- a/src/util/set.c
+++ b/src/util/set.c
@@ -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;