summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-23 15:26:36 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-23 15:26:36 (GMT)
commit15c409f4674ad3a94cb03fae145ddcf0b233a4d0 (patch)
treea74cda38511514aba5ced3563d77cab42bb53b9e /Modules
parenta089c1c9038e040b9df5809a02768351f601a613 (diff)
parente1da4dc2dd55926c9d7140f830a5338512279b3f (diff)
downloadCMake-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.cmake2
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;
}
")