The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=13273 ====================================================================== Reported By: Daniel R. Gomez Assigned To: ====================================================================== Project: CMake Issue ID: 13273 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2012-06-05 16:13 EDT Last Modified: 2012-06-05 16:13 EDT ====================================================================== Summary: From g++: "sorry: semantics of inline function static data `...' are wrong" in hashtable.hxx Description: 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. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2012-06-05 16:13 Daniel R. GomezNew Issue 2012-06-05 16:13 Daniel R. GomezFile Added: cmake-hashtable-fix.patch ====================================================================== -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
