From 4a6984145b56e85c54370d9d3a4bfe6115364d74 Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Tue, 10 Mar 2015 14:13:54 -0400 Subject: [PATCH] hashtable: Give prime number table functions internal linkage Match the linkage of the data they reference. Suggested-by: Mark Millard <markmi@dsl-only.net> Change-Id: I379cf9bb4519a87651ad05c1dfc2a6bfd43ec0ff --- hashtable.hxx.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hashtable.hxx.in b/hashtable.hxx.in index b93e9be6..7e7dc425 100644 --- a/hashtable.hxx.in +++ b/hashtable.hxx.in @@ -408,7 +408,7 @@ enum { _stl_num_primes = 31 }; // create a function with a static local to that function that returns // the static -inline const unsigned long* get_stl_prime_list() { +static inline const unsigned long* get_stl_prime_list() { static const unsigned long _stl_prime_list[_stl_num_primes] = { @@ -423,7 +423,7 @@ static const unsigned long _stl_prime_list[_stl_num_primes] = return &_stl_prime_list[0]; } -inline size_t _stl_next_prime(size_t __n) +static inline size_t _stl_next_prime(size_t __n) { const unsigned long* __first = get_stl_prime_list(); const unsigned long* __last = get_stl_prime_list() + (int)_stl_num_primes; -- GitLab