summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-10-10 21:37:21 (GMT)
committerBrad King <brad.king@kitware.com>2014-10-13 11:57:05 (GMT)
commit384d3ce7204f5a93833494db7808c1f0359db5ba (patch)
treef37c2b5adf0a6fead479dfcc77d83ea5e10da9ca /Modules
parenta7b9b571b373b2f04b8bfd6b456adc70bbc64df9 (diff)
downloadCMake-384d3ce7204f5a93833494db7808c1f0359db5ba.zip
CMake-384d3ce7204f5a93833494db7808c1f0359db5ba.tar.gz
CMake-384d3ce7204f5a93833494db7808c1f0359db5ba.tar.bz2
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.
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 880a688..c8949cf 100644
--- a/Modules/CheckStructHasMember.cmake
+++ b/Modules/CheckStructHasMember.cmake
@@ -70,7 +70,7 @@ ${_INCLUDE_FILES}
int main()
{
${_STRUCT}* tmp;
- tmp->${_MEMBER};
+ (void) tmp->${_MEMBER};
return 0;
}
")