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:
parent
a7b9b571b3
commit
384d3ce720
|
@ -70,7 +70,7 @@ ${_INCLUDE_FILES}
|
|||
int main()
|
||||
{
|
||||
${_STRUCT}* tmp;
|
||||
tmp->${_MEMBER};
|
||||
(void) tmp->${_MEMBER};
|
||||
return 0;
|
||||
}
|
||||
")
|
||||
|
|
Loading…
Reference in New Issue