aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/test/test_archive_read_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/test/test_archive_read_support.c')
-rw-r--r--libarchive/test/test_archive_read_support.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libarchive/test/test_archive_read_support.c b/libarchive/test/test_archive_read_support.c
index 6d213c409bf2..c6eb9346c627 100644
--- a/libarchive/test/test_archive_read_support.c
+++ b/libarchive/test/test_archive_read_support.c
@@ -126,7 +126,9 @@ DEFINE_TEST(test_archive_read_support)
ARCHIVE_FORMAT_WARC,
ARCHIVE_FORMAT_RAR_V5,
};
- for (unsigned i = 0; i < sizeof(format_codes) / sizeof(int); i++) {
+ unsigned int i;
+
+ for (i = 0; i < sizeof(format_codes) / sizeof(int); i++) {
format_code = format_codes[i];
test_filter_or_format(format_code_enabler);
test_filter_or_format(format_code_setter);