Merge topic 'CheckStructHasMember-fix-null-deref-warning'

e1da4dc2 CheckStructHasMember: fix null deref warning (#15413)
This commit is contained in:
Brad King 2015-02-23 10:26:36 -05:00 committed by CMake Topic Stage
commit 15c409f467
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
")