diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-11-29 07:21:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-29 07:21:41 +0100 |
| commit | 487233fa88c7f5680878578326a2f935befc89d4 (patch) | |
| tree | f7f1f0dc6da8381f400d3166b3e3dc6589ade42c /tests/core | |
| parent | a904fc6d12ffc20aa1a238a78000921494222e89 (diff) | |
| parent | ffe39babe515dd60cad49d2e66b739661800c74f (diff) | |
| download | libgit2-487233fa88c7f5680878578326a2f935befc89d4.tar.gz | |
Merge pull request #4895 from pks-t/pks/unused-warnings
Unused function warnings
Diffstat (limited to 'tests/core')
| -rw-r--r-- | tests/core/oidmap.c | 8 | ||||
| -rw-r--r-- | tests/core/strmap.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/core/oidmap.c b/tests/core/oidmap.c index 617da5483..b5f6f99e1 100644 --- a/tests/core/oidmap.c +++ b/tests/core/oidmap.c @@ -28,7 +28,7 @@ void test_core_oidmap__basic(void) cl_assert(map != NULL); for (i = 0; i < NITEMS; ++i) { - khiter_t pos; + size_t pos; int ret; pos = git_oidmap_lookup_index(map, &items[i].oid); @@ -42,7 +42,7 @@ void test_core_oidmap__basic(void) for (i = 0; i < NITEMS; ++i) { - khiter_t pos; + size_t pos; pos = git_oidmap_lookup_index(map, &items[i].oid); cl_assert(git_oidmap_valid_index(map, pos)); @@ -82,7 +82,7 @@ void test_core_oidmap__hash_collision(void) cl_assert(map != NULL); for (i = 0; i < NITEMS; ++i) { - khiter_t pos; + size_t pos; int ret; pos = git_oidmap_lookup_index(map, &items[i].oid); @@ -96,7 +96,7 @@ void test_core_oidmap__hash_collision(void) for (i = 0; i < NITEMS; ++i) { - khiter_t pos; + size_t pos; pos = git_oidmap_lookup_index(map, &items[i].oid); cl_assert(git_oidmap_valid_index(map, pos)); diff --git a/tests/core/strmap.c b/tests/core/strmap.c index 2fa594d43..64f516452 100644 --- a/tests/core/strmap.c +++ b/tests/core/strmap.c @@ -60,7 +60,7 @@ void test_core_strmap__1(void) void test_core_strmap__2(void) { - khiter_t pos; + size_t pos; int i; char *str; |
