Skip to content

Commit

Permalink
Suppress unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Jun 30, 2017
1 parent 9ea6283 commit 15274dd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions deps/patches/libgit2-mbedtls-verify.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
commit 795a6271f1feae601a499848347dfd57230e5b59
commit eefe88eaf8c5c5b7c9a596da79e68dca3a3234d4
Author: Curtis Vogt <[email protected]>
Date: Thu Jun 29 16:30:53 2017 -0500

Expand All @@ -8,10 +8,10 @@ Date: Thu Jun 29 16:30:53 2017 -0500
custom alternative names and common name checking.

diff --git a/src/streams/mbedtls.c b/src/streams/mbedtls.c
index 0376ee4..8b867de 100644
index 0376ee4..e456ea8 100644
--- a/src/streams/mbedtls.c
+++ b/src/streams/mbedtls.c
@@ -228,82 +228,18 @@ static int ssl_teardown(mbedtls_ssl_context *ssl)
@@ -228,82 +228,19 @@ static int ssl_teardown(mbedtls_ssl_context *ssl)
return ret;
}

Expand All @@ -35,6 +35,7 @@ index 0376ee4..8b867de 100644
- char subject_name[sn_size], alt_name[sn_size];
-
+ int ret = -1;
+ (void)(host); // Suppress unused parameter warning

if ((ret = mbedtls_ssl_get_verify_result(ssl)) != 0) {
char vrfy_buf[512];
Expand Down

0 comments on commit 15274dd

Please sign in to comment.