Skip to content
Snippets Groups Projects
Commit c5a0528c authored by Roman Tsisyk's avatar Roman Tsisyk
Browse files

Fix compilation with GCC 6.0.0

> error: ‘__ac_prime_list’ defined but not used [-Werror=unused-const-variable]
parent c1c1a941
No related branches found
No related tags found
No related merge requests found
......@@ -77,20 +77,6 @@
typedef uint32_t mh_int_t;
#endif /* MH_TYPEDEFS */
#ifndef __ac_HASH_PRIME_SIZE
#define __ac_HASH_PRIME_SIZE 31
static const mh_int_t __ac_prime_list[__ac_HASH_PRIME_SIZE] = {
3ul, 11ul, 23ul, 53ul,
97ul, 193ul, 389ul, 769ul,
1543ul, 3079ul, 6151ul, 12289ul,
24593ul, 49157ul, 98317ul, 196613ul,
393241ul, 786433ul, 1572869ul, 3145739ul,
6291469ul, 12582917ul, 25165843ul, 50331653ul,
100663319ul, 201326611ul, 402653189ul, 805306457ul,
1610612741ul, 3221225473ul, 4294967291ul
};
#endif /* __ac_HASH_PRIME_SIZE */
#ifndef MH_HEADER
#define MH_HEADER
......@@ -386,6 +372,20 @@ _mh(remove)(struct _mh(t) *h, const mh_node_t *node,
#ifdef MH_SOURCE
#ifndef __ac_HASH_PRIME_SIZE
#define __ac_HASH_PRIME_SIZE 31
static const mh_int_t __ac_prime_list[__ac_HASH_PRIME_SIZE] = {
3ul, 11ul, 23ul, 53ul,
97ul, 193ul, 389ul, 769ul,
1543ul, 3079ul, 6151ul, 12289ul,
24593ul, 49157ul, 98317ul, 196613ul,
393241ul, 786433ul, 1572869ul, 3145739ul,
6291469ul, 12582917ul, 25165843ul, 50331653ul,
100663319ul, 201326611ul, 402653189ul, 805306457ul,
1610612741ul, 3221225473ul, 4294967291ul
};
#endif /* __ac_HASH_PRIME_SIZE */
void __attribute__((noinline))
_mh(del_resize)(struct _mh(t) *h, mh_int_t x,
mh_arg_t arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment