1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-07 02:42:49 +03:00

Fix clang -Wunused-but-set-variable

This commit is contained in:
Marko Mäkelä
2022-07-26 08:16:53 +03:00
parent 788535f217
commit b9811b7c6d

View File

@@ -421,11 +421,9 @@ static int test_bug10736(MYSQL *mysql)
for (i= 0; i < 3; i++)
{
int row_no= 0;
rc= mysql_stmt_execute(stmt);
check_stmt_rc(rc, stmt);
while ((rc= mysql_stmt_fetch(stmt)) == 0)
++row_no;
while ((rc= mysql_stmt_fetch(stmt)) == 0);
FAIL_UNLESS(rc == MYSQL_NO_DATA, "rc != MYSQL_NO_DATA");
}
rc= mysql_stmt_close(stmt);