util: make set's deleted_key_value declaration consistent with hash table one
authorVlad Golovkin <vlad.golovkin.mail@gmail.com>
Mon, 29 May 2017 23:51:32 +0000 (02:51 +0300)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 8 Jun 2017 07:26:44 +0000 (09:26 +0200)
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>
src/util/set.c

index 99abefd0632cdac1100cd994c59cab513543c91e..392506639547d0d13cfbe89c8d5026f03e34a9bb 100644 (file)
@@ -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;