diff options
author | jani@hynda.mysql.fi <> | 2001-11-05 23:48:03 +0200 |
---|---|---|
committer | jani@hynda.mysql.fi <> | 2001-11-05 23:48:03 +0200 |
commit | d0e83062036a8da0bf02dd24070dd138b843ce80 (patch) | |
tree | 008020b20467d6720f9edf373f9b4aa9624c5918 /innobase/sync | |
parent | 8e2bfcb876314dc0bb334720b4eac7e70a3c4354 (diff) | |
download | mariadb-git-d0e83062036a8da0bf02dd24070dd138b843ce80.tar.gz |
Added xml patch to mysqldump.
Made innodb to compile more cleanly with debugging options
enabled. Fixed a few bugs and found a few possible bugs, which
I hope Heikki will check. Comments needs to be fixed too. Some
while() functions should be changed to do ... until for documenting
purposes, because some of them must and will be processed at least
once, or a variable would be used uninitialized.
Regards,
Jani
Diffstat (limited to 'innobase/sync')
-rw-r--r-- | innobase/sync/sync0arr.c | 2 | ||||
-rw-r--r-- | innobase/sync/sync0rw.c | 6 | ||||
-rw-r--r-- | innobase/sync/sync0sync.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/innobase/sync/sync0arr.c b/innobase/sync/sync0arr.c index b82c2a4a2df..66d711671dd 100644 --- a/innobase/sync/sync0arr.c +++ b/innobase/sync/sync0arr.c @@ -446,7 +446,7 @@ sync_array_cell_print( { mutex_t* mutex; rw_lock_t* rwlock; - char* str = NULL; + char* str __attribute__((unused)) = NULL; ulint type; type = cell->request_type; diff --git a/innobase/sync/sync0rw.c b/innobase/sync/sync0rw.c index 1ef2920618f..86ffed7ca95 100644 --- a/innobase/sync/sync0rw.c +++ b/innobase/sync/sync0rw.c @@ -115,8 +115,8 @@ rw_lock_create_func( lock->cfile_name = cfile_name; lock->cline = cline; - lock->last_s_file_name = "not yet reserved"; - lock->last_x_file_name = "not yet reserved"; + lock->last_s_file_name = (char *) "not yet reserved"; + lock->last_x_file_name = (char *) "not yet reserved"; lock->last_s_line = 0; lock->last_x_line = 0; @@ -789,7 +789,7 @@ Prints debug info of an rw-lock. */ void rw_lock_print( /*==========*/ - rw_lock_t* lock) /* in: rw-lock */ + rw_lock_t* lock __attribute__((unused))) /* in: rw-lock */ { #ifndef UNIV_SYNC_DEBUG printf( diff --git a/innobase/sync/sync0sync.c b/innobase/sync/sync0sync.c index 8b2a39e15eb..3f40aa166ee 100644 --- a/innobase/sync/sync0sync.c +++ b/innobase/sync/sync0sync.c @@ -229,7 +229,7 @@ mutex_create_func( mutex_set_waiters(mutex, 0); mutex->magic_n = MUTEX_MAGIC_N; mutex->line = 0; - mutex->file_name = "not yet reserved"; + mutex->file_name = (char *) "not yet reserved"; mutex->thread_id = ULINT_UNDEFINED; mutex->level = SYNC_LEVEL_NONE; mutex->cfile_name = cfile_name; |