Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 268d157

Browse files
committed
Suppress unused variable warning
1 parent 4fa66b2 commit 268d157

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

deps/patches/libgit2-mbedtls-verify.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
commit 795a6271f1feae601a499848347dfd57230e5b59
1+
commit eefe88eaf8c5c5b7c9a596da79e68dca3a3234d4
22
Author: Curtis Vogt <[email protected]>
33
Date: Thu Jun 29 16:30:53 2017 -0500
44

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

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

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

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

0 commit comments

Comments
 (0)