From 8c1ab524ee10cde1b3113d3054dd109f6bd0c66e Mon Sep 17 00:00:00 2001 From: Hiroshi Saito Date: Tue, 26 May 2020 19:00:35 +0900 Subject: [PATCH] fixed loop initial declaration used outside C99 mode. --- execute.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/execute.c b/execute.c index fc8ef7b..25985fa 100644 --- a/execute.c +++ b/execute.c @@ -410,9 +410,10 @@ const char *GetSvpName(const ConnectionClass *conn, char *wrk, int wrksize) static void param_status_batch_update(IPDFields *ipdopts, RETCODE retval, SQLLEN target_row, int count_of_deffered) { + int i, j; if (NULL != ipdopts->param_status_ptr) { - for (int i = target_row, j = 0; i >= 0 && j <= count_of_deffered; i--) + for (i = target_row, j = 0; i >= 0 && j <= count_of_deffered; i--) { if (SQL_PARAM_UNUSED != ipdopts->param_status_ptr[i]) { @@ -501,7 +502,8 @@ MYLOG(0, "about to begin SC_execute exec_type=%d\n", exec_type); if (LAST_EXEC == exec_type && NULL != ipdopts->param_status_ptr) { - for (int i = end_row; i >= start_row; i--) + int i; + for (i = end_row; i >= start_row; i--) { if (SQL_PARAM_UNUSED != ipdopts->param_status_ptr[i]) { -- 2.39.5