You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
Fix clang -Wunused-but-set-variable
This commit is contained in:
@@ -421,11 +421,9 @@ static int test_bug10736(MYSQL *mysql)
|
|||||||
|
|
||||||
for (i= 0; i < 3; i++)
|
for (i= 0; i < 3; i++)
|
||||||
{
|
{
|
||||||
int row_no= 0;
|
|
||||||
rc= mysql_stmt_execute(stmt);
|
rc= mysql_stmt_execute(stmt);
|
||||||
check_stmt_rc(rc, stmt);
|
check_stmt_rc(rc, stmt);
|
||||||
while ((rc= mysql_stmt_fetch(stmt)) == 0)
|
while ((rc= mysql_stmt_fetch(stmt)) == 0);
|
||||||
++row_no;
|
|
||||||
FAIL_UNLESS(rc == MYSQL_NO_DATA, "rc != MYSQL_NO_DATA");
|
FAIL_UNLESS(rc == MYSQL_NO_DATA, "rc != MYSQL_NO_DATA");
|
||||||
}
|
}
|
||||||
rc= mysql_stmt_close(stmt);
|
rc= mysql_stmt_close(stmt);
|
||||||
|
Reference in New Issue
Block a user