summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorAnton Filippov <afilippov@ac-sw.com>2020-03-31 18:51:16 +0700
committerJens Geyer <jensg@apache.org>2020-05-30 15:07:56 +0200
commit68f2194dfa3150526445d37afd80ededb7bb4585 (patch)
tree58ba3b062f601eab4f25a64019facd2405b3adde /build
parent36bf0a491e900f09b894b54dbe037262acec73e5 (diff)
downloadthrift-68f2194dfa3150526445d37afd80ededb7bb4585.tar.gz
Fix STRERROR_R_CHAR_P cxx check (remove unused variable warning->error)
Client: cpp Patch: Anton Filippov This closes #2081
Diffstat (limited to 'build')
-rw-r--r--build/cmake/ConfigureChecks.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/cmake/ConfigureChecks.cmake b/build/cmake/ConfigureChecks.cmake
index 457bfe05d..276d8ef5e 100644
--- a/build/cmake/ConfigureChecks.cmake
+++ b/build/cmake/ConfigureChecks.cmake
@@ -64,7 +64,7 @@ include(CheckCXXSourceCompiles)
check_cxx_source_compiles(
"
#include <string.h>
- int main(){char b;char *a = strerror_r(0, &b, 0); return(0);}
+ int main(){char b;char *a = strerror_r(0, &b, 0); static_cast<void>(a); return(0);}
"
STRERROR_R_CHAR_P)