| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0015413 | CMake | CMake | public | 2015-02-20 11:09 | 2015-07-08 08:57 | ||||
| Reporter | Peter Wu | ||||||||
| Assigned To | Brad King | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | CMake 3.1.3 | ||||||||
| Target Version | CMake 3.3 | Fixed in Version | CMake 3.3 | ||||||
| Summary | 0015413: 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. | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | ||||||
|
||||||
| Relationships |
| Notes | |
|
(0038010) Brad King (manager) 2015-02-20 11:36 |
Applied, thanks: CheckStructHasMember: fix null deref warning http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e1da4dc2 [^] |
|
(0039059) Robert Maynard (manager) 2015-07-08 08:57 |
Closing resolved issues that have not been updated in more than 4 months. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2015-02-20 11:09 | Peter Wu | New Issue | |
| 2015-02-20 11:09 | Peter Wu | File Added: 0001-CheckStructHasMember-fix-null-deref-warning.patch | |
| 2015-02-20 11:21 | Brad King | Assigned To | => Brad King |
| 2015-02-20 11:21 | Brad King | Status | new => assigned |
| 2015-02-20 11:21 | Brad King | Target Version | => CMake 3.3 |
| 2015-02-20 11:24 | Brad King | Relationship added | related to 0015203 |
| 2015-02-20 11:36 | Brad King | Note Added: 0038010 | |
| 2015-02-20 11:36 | Brad King | Status | assigned => resolved |
| 2015-02-20 11:36 | Brad King | Resolution | open => fixed |
| 2015-02-20 11:36 | Brad King | Fixed in Version | => CMake 3.3 |
| 2015-07-08 08:57 | Robert Maynard | Note Added: 0039059 | |
| 2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |