From 7e6b36bc2d332a3cb66b83116a393ac4728236d5 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 29 Dec 2022 07:51:16 +0100 Subject: Improve C89/90 compat --- source/test/programs/too_many_assertions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/test/programs/too_many_assertions.c') diff --git a/source/test/programs/too_many_assertions.c b/source/test/programs/too_many_assertions.c index 846970f..06b440b 100644 --- a/source/test/programs/too_many_assertions.c +++ b/source/test/programs/too_many_assertions.c @@ -1,7 +1,8 @@ #include "../../kit_test/test.h" TEST("foo") { - for (int i = 0; i <= KIT_TEST_ASSERTIONS_LIMIT; i++) REQUIRE(1); + int i; + for (i = 0; i <= KIT_TEST_ASSERTIONS_LIMIT; i++) REQUIRE(1); } int main(int argc, char **argv) { -- cgit v1.2.3