From 475cff54ce16bbb7e65c277453cb634bd46417b2 Mon Sep 17 00:00:00 2001 From: Matthias Gierlings Date: Thu, 27 Oct 2016 00:04:41 +0200 Subject: Fixes randombit/botan#677 --- src/tests/test_rng.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/tests/test_rng.cpp b/src/tests/test_rng.cpp index e815caf65..ff5d0b62e 100644 --- a/src/tests/test_rng.cpp +++ b/src/tests/test_rng.cpp @@ -447,7 +447,7 @@ class HMAC_DRBG_Unit_Tests : public Test ::close(fd[0]); // close read end in child rng.randomize(&child_bytes[0], child_bytes.size()); count = counting_rng.randomize_count(); - ::write(fd[1], &count, sizeof(count)); + ssize_t written = ::write(fd[1], &count, sizeof(count)); try { rng.randomize(&child_bytes[0], child_bytes.size()); } @@ -455,7 +455,8 @@ class HMAC_DRBG_Unit_Tests : public Test { fprintf(stderr, "%s", e.what()); } - ::write(fd[1], &child_bytes[0], child_bytes.size()); + written = ::write(fd[1], &child_bytes[0], child_bytes.size()); + BOTAN_UNUSED(written); ::close(fd[1]); // close write end in child ::_exit(0); } -- cgit v1.2.3