MbedTLS: Explicitly ignore rb_snprintf() return value
This commit is contained in:
parent
036419c344
commit
531e6323d8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue