mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-04 06:10:26 -06:00
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:
@@ -70,7 +70,7 @@ ${_INCLUDE_FILES}
|
|||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
${_STRUCT}* tmp;
|
${_STRUCT}* tmp;
|
||||||
tmp->${_MEMBER};
|
(void) tmp->${_MEMBER};
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
")
|
")
|
||||||
|
|||||||
Reference in New Issue
Block a user