This is an automated email from the ASF dual-hosted git repository.
jensg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 68f2194 Fix STRERROR_R_CHAR_P cxx check (remove unused variable
warning->error) Client: cpp Patch: Anton Filippov
68f2194 is described below
commit 68f2194dfa3150526445d37afd80ededb7bb4585
Author: Anton Filippov <[email protected]>
AuthorDate: Tue Mar 31 18:51:16 2020 +0700
Fix STRERROR_R_CHAR_P cxx check (remove unused variable warning->error)
Client: cpp
Patch: Anton Filippov
This closes #2081
---
build/cmake/ConfigureChecks.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build/cmake/ConfigureChecks.cmake
b/build/cmake/ConfigureChecks.cmake
index 457bfe0..276d8ef 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)