mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 20:33:41 +00:00
Fix MSVC "unreferenced local variable" compilation warning.
This commit is contained in:
parent
2ec83ff09d
commit
17bd6de3fb
@ -46,6 +46,7 @@ void test_core_errors__new_school(void)
|
|||||||
{
|
{
|
||||||
struct stat st;
|
struct stat st;
|
||||||
assert(p_lstat("this_file_does_not_exist", &st) < 0);
|
assert(p_lstat("this_file_does_not_exist", &st) < 0);
|
||||||
|
GIT_UNUSED(st);
|
||||||
}
|
}
|
||||||
giterr_set(GITERR_OS, "stat failed"); /* internal fn */
|
giterr_set(GITERR_OS, "stat failed"); /* internal fn */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user