Make unity.c compatible with c90
Avoid declaring the loop variable inside the for statement to keep
compatibility with c90:
unity.c:1408: error: for' loop initial declaration used outside C99 mode
@@ -1523,8 +1523,9 @@ int UnityParseOptions(int argc, char** argv)
{
UnityOptionIncludeNamed = NULL;
UnityOptionExcludeNamed = NULL;
+ int i;
- for (int i = 1; i < argc; i++)
+ for (i = 1; i < argc; i++)
{
if (argv[i][0] == '-')
{
