summaryrefslogtreecommitdiff
path: root/lib/msan/tests
diff options
context:
space:
mode:
authorViktor Kutuzov <vkutuzov@accesssoftek.com>2015-01-22 08:57:59 +0000
committerViktor Kutuzov <vkutuzov@accesssoftek.com>2015-01-22 08:57:59 +0000
commit485b04a1c87245278b302748b849293c5bd70cde (patch)
treec89d07e499a58f3caffeb1eb08e47ca88546dede /lib/msan/tests
parent2767241d776232b2edf4e61b60add3976a66c2d7 (diff)
[Msan] Fix the strerror_r unit test to build on FreeBSD
Differential Revision: http://reviews.llvm.org/D7089 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@226800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/tests')
-rw-r--r--lib/msan/tests/msan_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/msan/tests/msan_test.cc b/lib/msan/tests/msan_test.cc
index 61a07aec3..018eceb9c 100644
--- a/lib/msan/tests/msan_test.cc
+++ b/lib/msan/tests/msan_test.cc
@@ -568,7 +568,7 @@ TEST(MemorySanitizer, strerror) {
TEST(MemorySanitizer, strerror_r) {
errno = 0;
char buf[1000];
- char *res = strerror_r(EINVAL, buf, sizeof(buf));
+ char *res = (char*) (size_t) strerror_r(EINVAL, buf, sizeof(buf));
ASSERT_EQ(0, errno);
if (!res) res = buf; // POSIX version success.
EXPECT_NOT_POISONED(strlen(res));