From 531e6323d886d76771d8f389cb25a31a14071363 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Wed, 31 Aug 2016 01:01:42 +0000 Subject: [PATCH] MbedTLS: Explicitly ignore rb_snprintf() return value --- libratbox/src/mbedtls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libratbox/src/mbedtls.c b/libratbox/src/mbedtls.c index 1b3640c6..3849bb59 100644 --- a/libratbox/src/mbedtls.c +++ b/libratbox/src/mbedtls.c @@ -98,9 +98,9 @@ rb_get_ssl_strerror_internal(int err) #ifdef MBEDTLS_ERROR_C char mbed_errbuf[512]; mbedtls_strerror(err, mbed_errbuf, sizeof mbed_errbuf); - rb_snprintf(errbuf, sizeof errbuf, "(-0x%x) %s", -err, mbed_errbuf); + (void) rb_snprintf(errbuf, sizeof errbuf, "(-0x%x) %s", -err, mbed_errbuf); #else - rb_snprintf(errbuf, sizeof errbuf, "-0x%x", -err); + (void) rb_snprintf(errbuf, sizeof errbuf, "-0x%x", -err); #endif return errbuf;