The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15413 ====================================================================== Reported By: Lekensteyn Assigned To: ====================================================================== Project: CMake Issue ID: 15413 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2015-02-20 11:09 EST Last Modified: 2015-02-20 11:09 EST ====================================================================== Summary: CheckStructHasMember generates an uninitialized variable warning Description: Related to bug 15203 (which is fixed in CMake 3.2).
The current check_struct_has_member macro (as can be found in CMake 3.2) generates an uninitialized variable warning (noticeable via Clangs static code analyzer). A patch was proposed in http://www.cmake.org/Bug/view.php?id=15203#c37979, but a valid concern was raised about invoking C++ constructors. Here is a new minimal patch which uses sizeof instead. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-02-20 11:09 Lekensteyn New Issue 2015-02-20 11:09 Lekensteyn File Added: 0001-CheckStructHasMember-fix-null-deref-warning.patch ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers
