From 02963d45e37e85619e33f49d82e26157c8b580f6 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Thu, 1 Dec 2011 20:21:11 +0200 Subject: Fixed compiler warning --- storage/example/ha_example.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'storage/example/ha_example.cc') diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index 067bd00cdbf..8d5185ae0c7 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -977,6 +977,7 @@ bool ha_example::check_if_incompatible_data(HA_CREATE_INFO *info, param_new->boolparam != param_old->boolparam) DBUG_RETURN(COMPATIBLE_DATA_NO); +#ifndef DBUG_OFF for (i= 0; i < table->s->fields; i++) { ha_field_option_struct *f_old, *f_new; @@ -997,6 +998,7 @@ bool ha_example::check_if_incompatible_data(HA_CREATE_INFO *info, else DBUG_PRINT("info", ("old field %i did not changed", i)); } +#endif DBUG_RETURN(COMPATIBLE_DATA_YES); } -- cgit v1.2.1 From ef841d4c874b0635a07b6592356d575a555beeb5 Mon Sep 17 00:00:00 2001 From: Michael Widenius Date: Sat, 3 Dec 2011 20:44:54 +0200 Subject: Fixed buildbot warnings mysql-test/suite/maria/t/compat_aliases-master.opt: Fixed wrong limit storage/example/ha_example.cc: Fixed compiler warning --- storage/example/ha_example.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'storage/example/ha_example.cc') diff --git a/storage/example/ha_example.cc b/storage/example/ha_example.cc index 8d5185ae0c7..013a92fc780 100644 --- a/storage/example/ha_example.cc +++ b/storage/example/ha_example.cc @@ -947,7 +947,6 @@ bool ha_example::check_if_incompatible_data(HA_CREATE_INFO *info, uint table_changes) { ha_table_option_struct *param_old, *param_new; - uint i; DBUG_ENTER("ha_example::check_if_incompatible_data"); /* This example shows how custom engine specific table and field @@ -978,7 +977,7 @@ bool ha_example::check_if_incompatible_data(HA_CREATE_INFO *info, DBUG_RETURN(COMPATIBLE_DATA_NO); #ifndef DBUG_OFF - for (i= 0; i < table->s->fields; i++) + for (uint i= 0; i < table->s->fields; i++) { ha_field_option_struct *f_old, *f_new; f_old= table->s->field[i]->option_struct; -- cgit v1.2.1