summaryrefslogtreecommitdiff
path: root/sql/sql_test.cc
diff options
context:
space:
mode:
authorunknown <miguel@hegel.br>2003-01-04 01:19:17 -0200
committerunknown <miguel@hegel.br>2003-01-04 01:19:17 -0200
commita644e002ce9f9904747cae2e3d84bac1f19f3837 (patch)
tree222d21000b7c8358ce8b319f4458d6fe2ef1ec5a /sql/sql_test.cc
parent8aa2e87a78ae5618b7d4e8e8198634fc46f9fd3e (diff)
downloadmariadb-git-a644e002ce9f9904747cae2e3d84bac1f19f3837.tar.gz
Fix warnings and error VC++ compiler
client/mysql.cc: Removing unreferenced variables sql/sql_test.cc: Fix VC++ compiler error that doesn't permits the declaration and initialization of variables that can be skipped by the prior goto end instruction.
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r--sql/sql_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc
index 3fbeaa753db..758778ecfa8 100644
--- a/sql/sql_test.cc
+++ b/sql/sql_test.cc
@@ -276,6 +276,7 @@ static void display_table_locks (void)
VOID(pthread_mutex_unlock(&lock->mutex));
}
VOID(pthread_mutex_unlock(&THR_LOCK_lock));
+ uint i;
if (!saved_table_locks.elements) goto end;
qsort((gptr) dynamic_element(&saved_table_locks,0,TABLE_LOCK_INFO *),saved_table_locks.elements,sizeof(TABLE_LOCK_INFO),(qsort_cmp) dl_compare);
@@ -283,7 +284,7 @@ static void display_table_locks (void)
puts("\nThread database.table_name Locked/Waiting Lock_type\n");
- for (uint i=0 ; i < saved_table_locks.elements ; i++)
+ for (i=0 ; i < saved_table_locks.elements ; i++)
{
TABLE_LOCK_INFO *dl_ptr=dynamic_element(&saved_table_locks,i,TABLE_LOCK_INFO*);
printf("%-8ld%-28.28s%-22s%s\n",