diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 14:47:30 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-06 15:15:11 +0200 |
commit | ef1a5e6c19ce96b1474cda4a5468088bbeff8a8b (patch) | |
tree | d98fa5d65a672b16dc9f2bfd2f51f4bc1d8a47ca /src/tests.c | |
parent | c9cc7f885e6e1e4da07d9594af092a5efc86ee5a (diff) | |
download | gnutls-ef1a5e6c19ce96b1474cda4a5468088bbeff8a8b.tar.gz |
Mark with (void) the remove() function and other unchecked functions
This allows static analysers to properly warn on unchecked return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'src/tests.c')
-rw-r--r-- | src/tests.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests.c b/src/tests.c index 2d40b8c6be..be5150d2c6 100644 --- a/src/tests.c +++ b/src/tests.c @@ -433,7 +433,7 @@ test_code_t test_dhe_group(gnutls_session_t session) const char *print; FILE *fp; - remove("debug-dh.out"); + (void)remove("debug-dh.out"); if (verbose == 0 || pubkey.data == NULL) return TEST_IGNORE; @@ -1304,7 +1304,7 @@ test_code_t test_certificate(gnutls_session_t session) int ret; FILE *fp; - remove("debug-certs.out"); + (void)remove("debug-certs.out"); if (verbose == 0) return TEST_IGNORE; @@ -1455,7 +1455,7 @@ test_code_t test_server_cas(gnutls_session_t session) { int ret; - remove("debug-cas.out"); + (void)remove("debug-cas.out"); if (verbose == 0) return TEST_IGNORE; |