CheckStructHasMember: avoid breakage on -Wall -Werror (#15203)

With CMAKE_C_FLAGS='-Wall -Werror', this test breaks due to
-Werror=unused-value. Fix this by ignoring the return value.
This commit is contained in:
Peter Wu 2014-10-10 23:37:21 +02:00 committed by Brad King
parent a7b9b571b3
commit 384d3ce720
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ ${_INCLUDE_FILES}
int main()
{
${_STRUCT}* tmp;
tmp->${_MEMBER};
(void) tmp->${_MEMBER};
return 0;
}
")