提交 5074a3d8 编写于 作者: L Luca Boccassi

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
上级 a2849843
......@@ -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] == '-')
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册