summaryrefslogtreecommitdiffstats
path: root/Source/kwsys
diff options
context:
space:
mode:
authorDaniel R. Gomez <gomez@teragram.com>2012-06-05 20:19:06 (GMT)
committerBrad King <brad.king@kitware.com>2012-06-05 20:23:09 (GMT)
commit4f170e25752c995d8c51391cea60d86b549ea150 (patch)
treed990285c1b5836a6ec1d2db88b6357f6eec2446f /Source/kwsys
parent7687d557dc9a04c56ca9d9e943ff8e21ac8eb028 (diff)
downloadCMake-4f170e25752c995d8c51391cea60d86b549ea150.zip
CMake-4f170e25752c995d8c51391cea60d86b549ea150.tar.gz
CMake-4f170e25752c995d8c51391cea60d86b549ea150.tar.bz2
KWSys: Fix hashtable prime list on g++ 2.9 (#13273)
Building CMake with g++ 2.9-aix51-020209 on an AIX 5.3 system gives: cmsys/hashtable.hxx: In function `const long unsigned int *cmsys::get_stl_prime_list ()': cmsys/hashtable.hxx:399: warning: sorry: semantics of inline function static data `const long unsigned int _stl_prime_list[31]' are wrong (you'll wind up with multiple copies) cmsys/hashtable.hxx:399: warning: you can work around this by removing the initializer Give get_stl_prime_list internal linkage.
Diffstat (limited to 'Source/kwsys')
-rw-r--r--Source/kwsys/hashtable.hxx.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/hashtable.hxx.in b/Source/kwsys/hashtable.hxx.in
index db52fc8..c835503 100644
--- a/Source/kwsys/hashtable.hxx.in
+++ b/Source/kwsys/hashtable.hxx.in
@@ -394,7 +394,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] =
{