MantisBT - CMake |
| View Issue Details |
|
| 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. |
| Steps To Reproduce | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | related to | 0015203 | closed | Brad King | CheckStructHasMember breaks on -Wunused-value |
|
| Attached Files | 0001-CheckStructHasMember-fix-null-deref-warning.patch (893) 2015-02-20 11:09 https://public.kitware.com/Bug/file/5388/0001-CheckStructHasMember-fix-null-deref-warning.patch |
|
| 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 |