diff options
author | Jack Lloyd <[email protected]> | 2016-10-28 14:24:19 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-28 14:24:19 -0400 |
commit | 8f1976eb24d28b45ad41445eb7922f049928053e (patch) | |
tree | f37f72ba62a4f7fedde5cabe70c26b2a69543337 | |
parent | cee8a5ea2d66daeb04422a9467bda09571d3e6a9 (diff) | |
parent | 475cff54ce16bbb7e65c277453cb634bd46417b2 (diff) |
Merge GH #687 Avoid unused return value warning under GCC
-rw-r--r-- | src/tests/test_rng.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/test_rng.cpp b/src/tests/test_rng.cpp index 021273fe2..7f318426c 100644 --- a/src/tests/test_rng.cpp +++ b/src/tests/test_rng.cpp @@ -505,7 +505,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()); } @@ -513,7 +513,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); } |