mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 23:26:39 +00:00
Merge pull request #752 from nulltoken/fix/warning
Fix compilation warning and failing test
This commit is contained in:
commit
5bb545822d
@ -144,7 +144,9 @@ void gitno_consume_n(gitno_buffer *buf, size_t cons)
|
|||||||
|
|
||||||
int gitno_ssl_teardown(git_transport *t)
|
int gitno_ssl_teardown(git_transport *t)
|
||||||
{
|
{
|
||||||
int ret = ret;
|
#ifdef GIT_SSL
|
||||||
|
int ret;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!t->encrypt)
|
if (!t->encrypt)
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -31,7 +31,7 @@ void test_core_errors__new_school(void)
|
|||||||
do {
|
do {
|
||||||
struct stat st;
|
struct stat st;
|
||||||
memset(&st, 0, sizeof(st));
|
memset(&st, 0, sizeof(st));
|
||||||
assert(p_lstat("this_file_does_not_exist", &st) < 0);
|
cl_assert(p_lstat("this_file_does_not_exist", &st) < 0);
|
||||||
GIT_UNUSED(st);
|
GIT_UNUSED(st);
|
||||||
} while (false);
|
} while (false);
|
||||||
giterr_set(GITERR_OS, "stat failed"); /* internal fn */
|
giterr_set(GITERR_OS, "stat failed"); /* internal fn */
|
||||||
|
Loading…
Reference in New Issue
Block a user