Commit 17bd6de3fb1bd937c73588f9d9e75c9090e44eb9

nulltoken 2012-04-04T13:59:58

Fix MSVC "unreferenced local variable" compilation warning.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/tests-clar/core/errors.c b/tests-clar/core/errors.c
index 52b2652..c781000 100644
--- a/tests-clar/core/errors.c
+++ b/tests-clar/core/errors.c
@@ -46,6 +46,7 @@ void test_core_errors__new_school(void)
 	{
 		struct stat st;
 		assert(p_lstat("this_file_does_not_exist", &st) < 0);
+		GIT_UNUSED(st);
 	}
 	giterr_set(GITERR_OS, "stat failed"); /* internal fn */