You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
compilation failure with gcc 4.8.5
/home/buildbot/buildbot/build/libmariadb/unittest/libmariadb/ps.c:5152:3: error: ‘for’ loop initial declarations are only allowed in C99 mode for (unsigned int i=0; i < mysql_field_count(mysql); i++) ^ /home/buildbot/buildbot/build/libmariadb/unittest/libmariadb/ps.c:5152:3: note: use option -std=c99 or -std=gnu99 to compile your code
This commit is contained in:
@@ -5124,6 +5124,7 @@ static int test_conc565(MYSQL *mysql)
|
||||
MYSQL_FIELD *fields_binary, *fields_text;
|
||||
MYSQL_RES *result;
|
||||
int rc;
|
||||
unsigned int i;
|
||||
my_bool x=1;
|
||||
my_bool error= 0;
|
||||
|
||||
@@ -5149,7 +5150,7 @@ static int test_conc565(MYSQL *mysql)
|
||||
result= mysql_store_result(mysql);
|
||||
fields_text= mysql_fetch_fields(result);
|
||||
|
||||
for (unsigned int i=0; i < mysql_field_count(mysql); i++)
|
||||
for (i=0; i < mysql_field_count(mysql); i++)
|
||||
{
|
||||
if (fields_binary[i].length != fields_text[i].length ||
|
||||
fields_binary[i].max_length != fields_text[i].max_length)
|
||||
|
Reference in New Issue
Block a user