MantisBT - CMake
View Issue Details
0013273CMakeCMakepublic2012-06-05 16:132012-11-05 14:33
Daniel Richard G. 
Brad King 
normalminoralways
closedfixed 
PowerPCAIX5.3
CMake 2.8.8 
CMake 2.8.9CMake 2.8.9 
0013273: From g++: "sorry: semantics of inline function static data `...' are wrong" in hashtable.hxx
I see this warning when building CMake from git nightly with g++ 2.9-aix51-020209 on an AIX 5.3 system:

CMake-build/Source/cmsys/hashtable.hxx: In function `const long unsigned int *cmsys::get_stl_prime_list ()':
CMake-build/Source/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)
CMake-build/Source/cmsys/hashtable.hxx:399: warning: you can work around this by removing the initializer

(Details at http://open.cdash.org/viewBuildError.php?type=1&buildid=2336790 [^])

This can be fixed by making get_stl_prime_list() a static function, as in the attached patch.
No tags attached.
patch cmake-hashtable-fix.patch (496) 2012-06-05 16:13
https://public.kitware.com/Bug/file/4344/cmake-hashtable-fix.patch
Issue History
2012-06-05 16:13Daniel Richard G.New Issue
2012-06-05 16:13Daniel Richard G.File Added: cmake-hashtable-fix.patch
2012-06-05 16:24Brad KingNote Added: 0029617
2012-06-05 16:24Brad KingAssigned To => Brad King
2012-06-05 16:24Brad KingStatusnew => resolved
2012-06-05 16:24Brad KingResolutionopen => fixed
2012-06-05 16:24Brad KingProduct Version => CMake 2.8.8
2012-06-05 16:24Brad KingFixed in Version => CMake 2.8.9
2012-06-05 16:24Brad KingTarget Version => CMake 2.8.9
2012-11-05 14:33David ColeNote Added: 0031444
2012-11-05 14:33David ColeStatusresolved => closed

Notes
(0029617)
Brad King   
2012-06-05 16:24   
Applied, thanks:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4f170e25 [^]
(0031444)
David Cole   
2012-11-05 14:33   
Closing resolved issues that have not been updated in more than 4 months.