diff options
author | Brad King <brad.king@kitware.com> | 2015-02-23 15:26:36 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-02-23 15:26:36 (GMT) |
commit | 15c409f4674ad3a94cb03fae145ddcf0b233a4d0 (patch) | |
tree | a74cda38511514aba5ced3563d77cab42bb53b9e /Modules | |
parent | a089c1c9038e040b9df5809a02768351f601a613 (diff) | |
parent | e1da4dc2dd55926c9d7140f830a5338512279b3f (diff) | |
download | CMake-15c409f4674ad3a94cb03fae145ddcf0b233a4d0.zip CMake-15c409f4674ad3a94cb03fae145ddcf0b233a4d0.tar.gz CMake-15c409f4674ad3a94cb03fae145ddcf0b233a4d0.tar.bz2 |
Merge topic 'CheckStructHasMember-fix-null-deref-warning'
e1da4dc2 CheckStructHasMember: fix null deref warning (#15413)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CheckStructHasMember.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CheckStructHasMember.cmake b/Modules/CheckStructHasMember.cmake index de31d2c..6c15205 100644 --- a/Modules/CheckStructHasMember.cmake +++ b/Modules/CheckStructHasMember.cmake @@ -69,7 +69,7 @@ macro (CHECK_STRUCT_HAS_MEMBER _STRUCT _MEMBER _HEADER _RESULT) ${_INCLUDE_FILES} int main() { - (void)((${_STRUCT} *)0)->${_MEMBER}; + (void)sizeof(((${_STRUCT} *)0)->${_MEMBER}); return 0; } ") |