[cmake-developers] [CMake 0015413]: CheckStructHasMember generates an uninitialized variable warning
Mantis Bug Tracker
mantis at public.kitware.com
Fri Feb 20 11:09:54 EST 2015
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
======================================================================
More information about the cmake-developers
mailing list