MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015203 | CMake | Modules | public | 2014-10-10 17:46 | 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.0.2 | |||||||||
Target Version | CMake 3.2 | Fixed in Version | CMake 3.2 | |||||||
Summary | 0015203: CheckStructHasMember breaks on -Wunused-value | |||||||||
Description | When CMAKE_C_FLAGS containg -Wall -Werror, CheckStructHasMember will always fail due to the generated code appearing as: int main() { struct FOO* s; s->MEMBER; return 0; } See the attached patch for a fix. Don't know whether some -std flag will also bail out on int main() rather than int main(void), but that's a different issue. This one is about breakage due to very strict warnings on a modern compiler (GCC 4.9.1). | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | 0001-CheckStructHasMember-avoid-breakage-on-Wall.patch (776) 2014-10-10 17:46 https://public.kitware.com/Bug/file/5273/0001-CheckStructHasMember-avoid-breakage-on-Wall.patch 0001-CheckStructHasMember-avoid-clang-Wall-breakage.patch (999) 2014-10-30 13:56 https://public.kitware.com/Bug/file/5287/0001-CheckStructHasMember-avoid-clang-Wall-breakage.patch 0001-CheckStructHasMember-fix-null-deref-warning.patch (941) 2015-02-15 18:27 https://public.kitware.com/Bug/file/5385/0001-CheckStructHasMember-fix-null-deref-warning.patch | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-10-10 17:46 | Peter Wu | New Issue | ||||||||
2014-10-10 17:46 | Peter Wu | File Added: 0001-CheckStructHasMember-avoid-breakage-on-Wall.patch | ||||||||
2014-10-13 08:11 | Brad King | Note Added: 0037024 | ||||||||
2014-10-14 10:04 | Brad King | Assigned To | => Brad King | |||||||
2014-10-14 10:04 | Brad King | Status | new => resolved | |||||||
2014-10-14 10:04 | Brad King | Resolution | open => fixed | |||||||
2014-10-14 10:04 | Brad King | Fixed in Version | => CMake 3.1 | |||||||
2014-10-14 10:04 | Brad King | Target Version | => CMake 3.1 | |||||||
2014-10-30 13:56 | Peter Wu | Note Added: 0037110 | ||||||||
2014-10-30 13:56 | Peter Wu | Status | resolved => feedback | |||||||
2014-10-30 13:56 | Peter Wu | Resolution | fixed => reopened | |||||||
2014-10-30 13:56 | Peter Wu | File Added: 0001-CheckStructHasMember-avoid-clang-Wall-breakage.patch | ||||||||
2014-10-30 13:56 | Peter Wu | Note Edited: 0037110 | bug_revision_view_page.php?bugnote_id=37110#r1603 | |||||||
2014-10-30 14:12 | Brad King | Status | feedback => assigned | |||||||
2014-10-30 14:12 | Brad King | Resolution | reopened => open | |||||||
2014-10-30 14:12 | Brad King | Fixed in Version | CMake 3.1 => | |||||||
2014-10-30 14:12 | Brad King | Target Version | CMake 3.1 => CMake 3.2 | |||||||
2014-10-30 14:17 | Brad King | Note Added: 0037111 | ||||||||
2014-11-03 09:32 | Brad King | Status | assigned => resolved | |||||||
2014-11-03 09:32 | Brad King | Resolution | open => fixed | |||||||
2014-11-03 09:32 | Brad King | Fixed in Version | => CMake 3.2 | |||||||
2015-02-15 18:27 | Peter Wu | File Added: 0001-CheckStructHasMember-fix-null-deref-warning.patch | ||||||||
2015-02-15 18:29 | Peter Wu | Note Added: 0037979 | ||||||||
2015-02-15 18:29 | Peter Wu | Status | resolved => feedback | |||||||
2015-02-15 18:29 | Peter Wu | Resolution | fixed => reopened | |||||||
2015-02-16 09:28 | Brad King | Note Added: 0037981 | ||||||||
2015-02-20 10:42 | Brad King | Note Added: 0038006 | ||||||||
2015-02-20 10:42 | Brad King | Status | feedback => resolved | |||||||
2015-02-20 10:42 | Brad King | Resolution | reopened => fixed | |||||||
2015-02-20 11:24 | Brad King | Relationship added | related to 0015413 | |||||||
2015-07-08 08:57 | Robert Maynard | Note Added: 0039058 | ||||||||
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|