diff options
author | unknown <monty@mysql.com/nosik.monty.fi> | 2006-11-20 22:42:06 +0200 |
---|---|---|
committer | unknown <monty@mysql.com/nosik.monty.fi> | 2006-11-20 22:42:06 +0200 |
commit | cd5544ca62a70f3b1847e82c690c89278a7a8ea4 (patch) | |
tree | c8a26659fd67578dcb2edfa68c23c6ca4650fc4e /myisam | |
parent | 2433e766df996cecfdcc17468d1c3d00b735cede (diff) | |
download | mariadb-git-cd5544ca62a70f3b1847e82c690c89278a7a8ea4.tar.gz |
Remove compiler warnings
(Mostly in DBUG_PRINT() and unused arguments)
Fixed bug in query cache when used with traceing (--with-debug)
Fixed memory leak in mysqldump
Removed warnings from mysqltest scripts (replaced -- with #)
BitKeeper/etc/ignore:
added mysql-test/r/*.warnings
BUILD/SETUP.sh:
Don't build with BDB as default
client/client_priv.h:
Added OPT_DEBUG_INFO
client/mysqlbinlog.cc:
Fixed compiler warning
client/mysqldump.c:
Removed compiler warnings
Added option --debug-info to detect memory leaks
Fixed memory leak
Don't backup cluster replication tables (if used with 5.1)
cmd-line-utils/readline/bind.c:
Fixed compiler warning
cmd-line-utils/readline/chardefs.h:
Fixed compiler warning
cmd-line-utils/readline/complete.c:
Fixed compiler warning
cmd-line-utils/readline/display.c:
Fixed compiler warning
cmd-line-utils/readline/histexpand.c:
Fixed compiler warning
cmd-line-utils/readline/input.c:
Fixed compiler warning
cmd-line-utils/readline/isearch.c:
Fixed compiler warning
cmd-line-utils/readline/kill.c:
Fixed compiler warning
cmd-line-utils/readline/macro.c:
Fixed compiler warning
cmd-line-utils/readline/misc.c:
Fixed compiler warning
cmd-line-utils/readline/nls.c:
Fixed compiler warning
cmd-line-utils/readline/readline.c:
Fixed compiler warning
cmd-line-utils/readline/rltty.c:
Fixed compiler warning
cmd-line-utils/readline/search.c:
Fixed compiler warning
cmd-line-utils/readline/terminal.c:
Fixed compiler warning
cmd-line-utils/readline/text.c:
Fixed compiler warning
cmd-line-utils/readline/tilde.c:
Fixed compiler warning
cmd-line-utils/readline/undo.c:
Fixed compiler warning
cmd-line-utils/readline/util.c:
Fixed compiler warning
cmd-line-utils/readline/vi_mode.c:
Fixed compiler warning
dbug/dbug_analyze.c:
Fixed compiler warning
extra/yassl/src/ssl.cpp:
Fixed compiler warning
extra/yassl/testsuite/testsuite.cpp:
Fixed compiler warning
heap/_check.c:
Fixed compiler warning
heap/hp_delete.c:
Fixed compiler warning
heap/hp_hash.c:
Fixed compiler warning
heap/hp_open.c:
Fixed compiler warning
heap/hp_rkey.c:
Fixed compiler warning
heap/hp_rrnd.c:
Fixed compiler warning
heap/hp_write.c:
Fixed compiler warning
libmysql/libmysql.c:
Fixed compiler warning
libmysqld/libmysqld.c:
Fixed compiler warning
myisam/mi_close.c:
Fixed compiler warning
myisam/mi_delete.c:
Fixed compiler warning
myisam/mi_dynrec.c:
Fixed compiler warning
myisam/mi_keycache.c:
Fixed compiler warning
myisam/mi_page.c:
Fixed compiler warning
myisam/mi_statrec.c:
Fixed compiler warning
myisam/mi_test2.c:
Fixed compiler warning
myisam/mi_write.c:
Fixed compiler warning
myisam/myisampack.c:
Fixed compiler warning
myisammrg/myrg_extra.c:
Fixed compiler warning
mysql-test/mysql-test-run.pl:
Remove .reject, .progress, .log and .warnings flag at start
cluster -> mysql database (for 5.1)
mysql-test/include/federated.inc:
Remove mysqltest warnings
mysql-test/include/sp-vars.inc:
Remove mysqltest warnings
mysql-test/mysql-test-run.sh:
Fix so that 'make test' works again
Remove .reject, .progress .log and .warnings files at startup
mysql-test/r/ctype_cp1250_ch.result:
Drop used tables at startup
mysql-test/t/create.test:
Remove mysqltest warnings
mysql-test/t/csv.test:
Remove mysqltest warnings
mysql-test/t/ctype_collate.test:
Remove mysqltest warnings
mysql-test/t/ctype_cp1250_ch.test:
Drop used tables at startup
mysql-test/t/ctype_ucs.test:
Remove mysqltest warnings
mysql-test/t/func_sapdb.test:
Remove mysqltest warnings
mysql-test/t/func_str.test:
Remove mysqltest warnings
mysql-test/t/grant.test:
Remove mysqltest warnings
mysql-test/t/greedy_optimizer.test:
Remove mysqltest warnings
mysql-test/t/group_min_max.test:
Remove mysqltest warnings
mysql-test/t/innodb.test:
Remove mysqltest warnings
mysql-test/t/join.test:
Remove mysqltest warnings
mysql-test/t/limit.test:
Remove mysqltest warnings
mysql-test/t/null.test:
Remove mysqltest warnings
mysql-test/t/select.test:
Remove mysqltest warnings
mysql-test/t/sp-prelocking.test:
Remove mysqltest warnings
mysql-test/t/strict.test:
Remove mysqltest warnings
mysql-test/t/subselect.test:
Remove mysqltest warnings
mysql-test/t/type_newdecimal.test:
Remove mysqltest warnings
mysql-test/t/view_grant.test:
Remove mysqltest warnings
mysys/default.c:
Fixed compiler warning
mysys/hash.c:
Fixed compiler warning
mysys/list.c:
Fixed compiler warning
mysys/mf_iocache.c:
Fixed compiler warning
mysys/mf_keycache.c:
Fixed compiler warning
mysys/mf_keycaches.c:
Fixed compiler warning
mysys/my_alloc.c:
Fixed compiler warning
mysys/my_dup.c:
Fixed compiler warning
mysys/my_fopen.c:
Fixed compiler warning
mysys/my_fstream.c:
Fixed compiler warning
mysys/my_getwd.c:
Fixed compiler warning
mysys/my_handler.c:
Fixed compiler warning
Added missing enums in switch
mysys/my_lib.c:
Fixed compiler warning
mysys/my_lread.c:
Fixed compiler warning
mysys/my_lwrite.c:
Fixed compiler warning
mysys/my_malloc.c:
Fixed compiler warning
mysys/my_pread.c:
Fixed compiler warning
mysys/my_read.c:
Fixed compiler warning
mysys/my_realloc.c:
Fixed compiler warning
mysys/my_seek.c:
Fixed compiler warning
mysys/my_write.c:
Fixed compiler warning
mysys/safemalloc.c:
Fixed compiler warning
mysys/thr_lock.c:
Fixed compiler warning
mysys/tree.c:
Fixed compiler warning
mysys/typelib.c:
Fixed compiler warning
ndb/include/logger/LogHandler.hpp:
Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings)
ndb/include/ndb_global.h.in:
Added LINT_SET_PTR macro to be able to remove some compiler warnings
ndb/include/util/InputStream.hpp:
Fixed compiler warning
ndb/include/util/OutputStream.hpp:
Fixed compiler warning
ndb/include/util/SimpleProperties.hpp:
Fixed compiler warning
ndb/src/common/debugger/EventLogger.cpp:
remove if on 'signal' as this is a function pointer and is always true
ndb/src/common/debugger/signaldata/BackupSignalData.cpp:
Add missing enums
ndb/src/common/logger/LogHandler.cpp:
Changed SetErrorStr() to take const char* to remove compiler warnings (as many arguments to this are const strings)
ndb/src/common/portlib/NdbMutex.c:
Fixed compiler warning
ndb/src/common/portlib/NdbThread.c:
Fixed compiler warning
ndb/src/common/transporter/Transporter.cpp:
Swapped arguments to remove compiler warnings
ndb/src/cw/cpcd/CPCD.hpp:
Fixed compiler warning
ndb/src/kernel/blocks/backup/Backup.cpp:
Fixed compiler warning
ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
Fixed compiler warning
ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
Fixed compiler warning
ndb/src/kernel/blocks/dbtux/DbtuxSearch.cpp:
Fixed compiler warning
ndb/src/kernel/blocks/ndbcntr/NdbcntrMain.cpp:
Added missing enums
ndb/src/kernel/blocks/qmgr/QmgrMain.cpp:
Fixed compiler warning
ndb/src/kernel/error/ErrorReporter.cpp:
Fixed compiler warning
ndb/src/kernel/error/ErrorReporter.hpp:
Fixed compiler warning
ndb/src/kernel/error/ndbd_exit_codes.c:
Fixed compiler warning
ndb/src/kernel/vm/TransporterCallback.cpp:
Fixed compiler warning
ndb/src/mgmapi/mgmapi.cpp:
Fixed compiler warning
ndb/src/mgmclient/CommandInterpreter.cpp:
Fixed compiler warning
ndb/src/mgmsrv/MgmtSrvr.cpp:
Fixed compiler warning
ndb/src/mgmsrv/Services.cpp:
Fixed compiler warning
ndb/src/ndbapi/ClusterMgr.cpp:
Fixed compiler warning
ndb/src/ndbapi/DictCache.cpp:
Fixed compiler warning
ndb/src/ndbapi/Ndb.cpp:
Fixed compiler warning
ndb/src/ndbapi/NdbOperationDefine.cpp:
Fixed compiler warning
ndb/src/ndbapi/NdbOperationExec.cpp:
Fixed compiler warning
ndb/src/ndbapi/NdbOperationInt.cpp:
Fixed compiler warning
ndb/src/ndbapi/NdbOperationSearch.cpp:
Fixed compiler warning
ndb/src/ndbapi/NdbTransaction.cpp:
Fixed compiler warning
ndb/src/ndbapi/Ndbif.cpp:
Fixed compiler warning
ndb/src/ndbapi/Ndbinit.cpp:
Fixed compiler warning
ndb/src/ndbapi/ndb_cluster_connection.cpp:
Fixed compiler warning
ndb/tools/drop_index.cpp:
Fixed compiler warning
ndb/tools/drop_tab.cpp:
Fixed compiler warning
ndb/tools/ndb_config.cpp:
Fixed compiler warning
regex/regexec.c:
Fixed compiler warning
server-tools/instance-manager/mysql_connection.cc:
Fixed compiler warning
sql/Makefile.am:
Fix for bison 1.875, which adds an attribute statement that gcc 4.1.0 can't parse
sql/filesort.cc:
Fixed compiler warning
sql/ha_archive.cc:
Fixed compiler warning
sql/ha_federated.cc:
Fixed compiler warning
sql/ha_federated.h:
Fixed compiler warning
sql/ha_innodb.cc:
Fixed compiler warning
sql/ha_myisam.cc:
Fixed compiler warning
sql/ha_myisammrg.cc:
Fixed compiler warning
sql/ha_ndbcluster.cc:
Fixed compiler warning
sql/handler.cc:
Fixed compiler warning
sql/item_cmpfunc.cc:
Fixed compiler warning
sql/item_subselect.cc:
Fixed compiler warning
sql/item_timefunc.cc:
Fixed compiler warning
sql/log_event.cc:
Fixed compiler warning
sql/mysqld.cc:
Fixed compiler warning
sql/net_serv.cc:
Fixed compiler warning
sql/opt_range.cc:
Fixed compiler warning
Formated DBUG statements to be as rest of code
sql/slave.cc:
Fixed compiler warning
sql/sql_acl.cc:
Fixed compiler warning
sql/sql_cache.cc:
Fixed compiler warning
Fixed bug in query cache when used with DBUG traceing
sql/sql_class.cc:
Fixed compiler warning
sql/sql_class.h:
Fixed compiler warning
sql/sql_delete.cc:
Fixed compiler warning
sql/sql_parse.cc:
Fixed compiler warning
Hack to fix my_sprintf() strings with %b
sql/sql_prepare.cc:
Fixed compiler warning
Hack to fix my_sprintf() strings with %b
sql/sql_repl.cc:
Fixed compiler warning
sql/sql_select.cc:
Fixed compiler warning
sql/sql_update.cc:
Fixed compiler warning
sql/sql_view.cc:
Fixed compiler warning
sql/strfunc.cc:
Fixed compiler warning
sql-common/client.c:
Fixed compiler warning
sql-common/my_time.c:
Fixed compiler warning
sql/table.cc:
Fixed compiler warning
sql/tztime.cc:
Fixed compiler warning
sql/unireg.cc:
Fixed compiler warning
strings/decimal.c:
Fixed compiler warning
tests/mysql_client_test.c:
Fixed compiler warning
vio/viosocket.c:
Fixed compiler warning
vio/viossl.c:
Fixed compiler warning
vio/viosslfactories.c:
Fixed compiler warning
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/mi_close.c | 5 | ||||
-rw-r--r-- | myisam/mi_delete.c | 9 | ||||
-rw-r--r-- | myisam/mi_dynrec.c | 4 | ||||
-rw-r--r-- | myisam/mi_keycache.c | 4 | ||||
-rw-r--r-- | myisam/mi_page.c | 4 | ||||
-rw-r--r-- | myisam/mi_statrec.c | 4 | ||||
-rw-r--r-- | myisam/mi_test2.c | 2 | ||||
-rw-r--r-- | myisam/mi_write.c | 18 | ||||
-rw-r--r-- | myisam/myisampack.c | 15 |
9 files changed, 35 insertions, 30 deletions
diff --git a/myisam/mi_close.c b/myisam/mi_close.c index 62f5617de1a..8a4f6ee7f5d 100644 --- a/myisam/mi_close.c +++ b/myisam/mi_close.c @@ -28,8 +28,9 @@ int mi_close(register MI_INFO *info) int error=0,flag; MYISAM_SHARE *share=info->s; DBUG_ENTER("mi_close"); - DBUG_PRINT("enter",("base: %lx reopen: %u locks: %u", - info,(uint) share->reopen, (uint) share->tot_locks)); + DBUG_PRINT("enter",("base: 0x%lx reopen: %u locks: %u", + (long) info, (uint) share->reopen, + (uint) share->tot_locks)); pthread_mutex_lock(&THR_LOCK_myisam); if (info->lock_type == F_EXTRA_LCK) diff --git a/myisam/mi_delete.c b/myisam/mi_delete.c index 85cc60bdd9d..471420d99c0 100644 --- a/myisam/mi_delete.c +++ b/myisam/mi_delete.c @@ -165,7 +165,7 @@ static int _mi_ck_real_delete(register MI_INFO *info, MI_KEYDEF *keyinfo, DBUG_PRINT("error",("Couldn't allocate memory")); DBUG_RETURN(my_errno=ENOMEM); } - DBUG_PRINT("info",("root_page: %ld",old_root)); + DBUG_PRINT("info",("root_page: %ld", (long) old_root)); if (!_mi_fetch_keypage(info,keyinfo,old_root,DFLT_INIT_HITS,root_buff,0)) { error= -1; @@ -410,7 +410,7 @@ static int del(register MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *key, MYISAM_SHARE *share=info->s; MI_KEY_PARAM s_temp; DBUG_ENTER("del"); - DBUG_PRINT("enter",("leaf_page: %ld keypos: 0x%lx", leaf_page, + DBUG_PRINT("enter",("leaf_page: %ld keypos: 0x%lx", (long) leaf_page, (ulong) keypos)); DBUG_DUMP("leaf_buff",(byte*) leaf_buff,mi_getint(leaf_buff)); @@ -597,7 +597,8 @@ static int underflow(register MI_INFO *info, register MI_KEYDEF *keyinfo, else { /* Page is full */ endpos=anc_buff+anc_length; - DBUG_PRINT("test",("anc_buff: %lx endpos: %lx",anc_buff,endpos)); + DBUG_PRINT("test",("anc_buff: 0x%lx endpos: 0x%lx", + (long) anc_buff, (long) endpos)); if (keypos != anc_buff+2+key_reflength && !_mi_get_last_key(info,keyinfo,anc_buff,anc_key,keypos,&length)) goto err; @@ -775,7 +776,7 @@ static uint remove_key(MI_KEYDEF *keyinfo, uint nod_flag, int s_length; uchar *start; DBUG_ENTER("remove_key"); - DBUG_PRINT("enter",("keypos: %lx page_end: %lx",keypos,page_end)); + DBUG_PRINT("enter",("keypos: 0x%lx page_end: 0x%lx",(long) keypos, (long) page_end)); start=keypos; if (!(keyinfo->flag & diff --git a/myisam/mi_dynrec.c b/myisam/mi_dynrec.c index ef5ab73f1a9..6590e6bd92b 100644 --- a/myisam/mi_dynrec.c +++ b/myisam/mi_dynrec.c @@ -1066,8 +1066,8 @@ ulong _mi_rec_unpack(register MI_INFO *info, register byte *to, byte *from, err: my_errno= HA_ERR_WRONG_IN_RECORD; - DBUG_PRINT("error",("to_end: %lx -> %lx from_end: %lx -> %lx", - to,to_end,from,from_end)); + DBUG_PRINT("error",("to_end: 0x%lx -> 0x%lx from_end: 0x%lx -> 0x%lx", + (long) to, (long) to_end, (long) from, (long) from_end)); DBUG_DUMP("from",(byte*) info->rec_buff,info->s->base.min_pack_length); DBUG_RETURN(MY_FILE_ERROR); } /* _mi_rec_unpack */ diff --git a/myisam/mi_keycache.c b/myisam/mi_keycache.c index fb13f3703a2..d595be3a684 100644 --- a/myisam/mi_keycache.c +++ b/myisam/mi_keycache.c @@ -54,8 +54,8 @@ int mi_assign_to_key_cache(MI_INFO *info, int error= 0; MYISAM_SHARE* share= info->s; DBUG_ENTER("mi_assign_to_key_cache"); - DBUG_PRINT("enter",("old_key_cache_handle: %lx new_key_cache_handle: %lx", - share->key_cache, key_cache)); + DBUG_PRINT("enter",("old_key_cache_handle: 0x%lx new_key_cache_handle: 0x%lx", + (long) share->key_cache, (long) key_cache)); /* Skip operation if we didn't change key cache. This can happen if we diff --git a/myisam/mi_page.c b/myisam/mi_page.c index 5240c063fba..d18a10c3cde 100644 --- a/myisam/mi_page.c +++ b/myisam/mi_page.c @@ -27,7 +27,7 @@ uchar *_mi_fetch_keypage(register MI_INFO *info, MI_KEYDEF *keyinfo, uchar *tmp; uint page_size; DBUG_ENTER("_mi_fetch_keypage"); - DBUG_PRINT("enter",("page: %ld",page)); + DBUG_PRINT("enter",("page: %ld", (long) page)); tmp=(uchar*) key_cache_read(info->s->key_cache, info->s->kfile, page, level, (byte*) buff, @@ -80,7 +80,7 @@ int _mi_write_keypage(register MI_INFO *info, register MI_KEYDEF *keyinfo, my_errno=EINVAL; DBUG_RETURN((-1)); } - DBUG_PRINT("page",("write page at: %lu",(long) page,buff)); + DBUG_PRINT("page",("write page at: %lu",(long) page)); DBUG_DUMP("buff",(byte*) buff,mi_getint(buff)); #endif diff --git a/myisam/mi_statrec.c b/myisam/mi_statrec.c index 42352f63c66..5e6ea939eca 100644 --- a/myisam/mi_statrec.c +++ b/myisam/mi_statrec.c @@ -255,8 +255,8 @@ int _mi_read_rnd_static_record(MI_INFO *info, byte *buf, if (filepos >= info->state->data_file_length) { DBUG_PRINT("test",("filepos: %ld (%ld) records: %ld del: %ld", - filepos/share->base.reclength,filepos, - info->state->records, info->state->del)); + (long) filepos/share->base.reclength, (long) filepos, + (long) info->state->records, (long) info->state->del)); fast_mi_writeinfo(info); DBUG_RETURN(my_errno=HA_ERR_END_OF_FILE); } diff --git a/myisam/mi_test2.c b/myisam/mi_test2.c index 6a6dcb971a2..0959769992c 100644 --- a/myisam/mi_test2.c +++ b/myisam/mi_test2.c @@ -813,7 +813,7 @@ end: printf("Write records: %d\nUpdate records: %d\nSame-key-read: %d\nDelete records: %d\n", write_count,update,dupp_keys,opt_delete); if (rec_pointer_size) printf("Record pointer size: %d\n",rec_pointer_size); - printf("myisam_block_size: %u\n", myisam_block_size); + printf("myisam_block_size: %lu\n", myisam_block_size); if (key_cacheing) { puts("Key cache used"); diff --git a/myisam/mi_write.c b/myisam/mi_write.c index 9ab8753f6d7..fb64ec2bb8b 100644 --- a/myisam/mi_write.c +++ b/myisam/mi_write.c @@ -339,7 +339,7 @@ static int w_search(register MI_INFO *info, register MI_KEYDEF *keyinfo, my_bool was_last_key; my_off_t next_page, dupp_key_pos; DBUG_ENTER("w_search"); - DBUG_PRINT("enter",("page: %ld",page)); + DBUG_PRINT("enter",("page: %ld", (long) page)); search_key_length= (comp_flag & SEARCH_FIND) ? key_length : USE_WHOLE_KEY; if (!(temp_buff= (uchar*) my_alloca((uint) keyinfo->block_length+ @@ -462,7 +462,7 @@ int _mi_insert(register MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *endpos, *prev_key; MI_KEY_PARAM s_temp; DBUG_ENTER("_mi_insert"); - DBUG_PRINT("enter",("key_pos: %lx",key_pos)); + DBUG_PRINT("enter",("key_pos: 0x%lx", (long) key_pos)); DBUG_EXECUTE("key",_mi_print_key(DBUG_FILE,keyinfo->seg,key,USE_WHOLE_KEY);); nod_flag=mi_test_if_nod(anc_buff); @@ -483,8 +483,8 @@ int _mi_insert(register MI_INFO *info, register MI_KEYDEF *keyinfo, { DBUG_PRINT("test",("t_length: %d ref_len: %d", t_length,s_temp.ref_length)); - DBUG_PRINT("test",("n_ref_len: %d n_length: %d key_pos: %lx", - s_temp.n_ref_length,s_temp.n_length,s_temp.key)); + DBUG_PRINT("test",("n_ref_len: %d n_length: %d key_pos: 0x%lx", + s_temp.n_ref_length,s_temp.n_length, (long) s_temp.key)); } #endif if (t_length > 0) @@ -677,7 +677,8 @@ uchar *_mi_find_half_pos(uint nod_flag, MI_KEYDEF *keyinfo, uchar *page, } while (page < end); *return_key_length=length; *after_key=page; - DBUG_PRINT("exit",("returns: %lx page: %lx half: %lx",lastpos,page,end)); + DBUG_PRINT("exit",("returns: 0x%lx page: 0x%lx half: 0x%lx", + (long) lastpos, (long) page, (long) end)); DBUG_RETURN(lastpos); } /* _mi_find_half_pos */ @@ -732,7 +733,8 @@ static uchar *_mi_find_last_pos(MI_KEYDEF *keyinfo, uchar *page, } *return_key_length=last_length; *after_key=lastpos; - DBUG_PRINT("exit",("returns: %lx page: %lx end: %lx",prevpos,page,end)); + DBUG_PRINT("exit",("returns: 0x%lx page: 0x%lx end: 0x%lx", + (long) prevpos,(long) page,(long) end)); DBUG_RETURN(prevpos); } /* _mi_find_last_pos */ @@ -768,7 +770,7 @@ static int _mi_balance_page(register MI_INFO *info, MI_KEYDEF *keyinfo, next_page= _mi_kpos(info->s->base.key_reflength, father_key_pos+father_keylength); buff=info->buff; - DBUG_PRINT("test",("use right page: %lu",next_page)); + DBUG_PRINT("test",("use right page: %lu", (ulong) next_page)); } else { @@ -777,7 +779,7 @@ static int _mi_balance_page(register MI_INFO *info, MI_KEYDEF *keyinfo, next_page= _mi_kpos(info->s->base.key_reflength,father_key_pos); /* Fix that curr_buff is to left */ buff=curr_buff; curr_buff=info->buff; - DBUG_PRINT("test",("use left page: %lu",next_page)); + DBUG_PRINT("test",("use left page: %lu", (ulong) next_page)); } /* father_key_pos ptr to parting key */ if (!_mi_fetch_keypage(info,keyinfo,next_page,DFLT_INIT_HITS,info->buff,0)) diff --git a/myisam/myisampack.c b/myisam/myisampack.c index e80a3ffacd9..79359e29a5d 100644 --- a/myisam/myisampack.c +++ b/myisam/myisampack.c @@ -2036,7 +2036,7 @@ static void write_field_info(HUFF_COUNTS *counts, uint fields, uint trees) uint huff_tree_bits; huff_tree_bits=max_bit(trees ? trees-1 : 0); - DBUG_PRINT("info", ("")); + DBUG_PRINT("info", (" ")); DBUG_PRINT("info", ("column types:")); DBUG_PRINT("info", ("FIELD_NORMAL 0")); DBUG_PRINT("info", ("FIELD_SKIP_ENDSPACE 1")); @@ -2048,12 +2048,12 @@ static void write_field_info(HUFF_COUNTS *counts, uint fields, uint trees) DBUG_PRINT("info", ("FIELD_ZERO 7")); DBUG_PRINT("info", ("FIELD_VARCHAR 8")); DBUG_PRINT("info", ("FIELD_CHECK 9")); - DBUG_PRINT("info", ("")); + DBUG_PRINT("info", (" ")); DBUG_PRINT("info", ("pack type as a set of flags:")); DBUG_PRINT("info", ("PACK_TYPE_SELECTED 1")); DBUG_PRINT("info", ("PACK_TYPE_SPACE_FIELDS 2")); DBUG_PRINT("info", ("PACK_TYPE_ZERO_FILL 4")); - DBUG_PRINT("info", ("")); + DBUG_PRINT("info", (" ")); if (verbose >= 2) { VOID(printf("\n")); @@ -2126,7 +2126,7 @@ static my_off_t write_huff_tree(HUFF_TREE *huff_tree, uint trees) return 0; } - DBUG_PRINT("info", ("")); + DBUG_PRINT("info", (" ")); if (verbose >= 2) VOID(printf("\n")); tree_no= 0; @@ -2137,7 +2137,7 @@ static my_off_t write_huff_tree(HUFF_TREE *huff_tree, uint trees) if (huff_tree->tree_number == 0) continue; /* Deleted tree */ tree_no++; - DBUG_PRINT("info", ("")); + DBUG_PRINT("info", (" ")); if (verbose >= 3) VOID(printf("\n")); /* Count the total number of elements (byte codes or column values). */ @@ -2329,7 +2329,7 @@ static my_off_t write_huff_tree(HUFF_TREE *huff_tree, uint trees) } flush_bits(); } - DBUG_PRINT("info", ("")); + DBUG_PRINT("info", (" ")); if (verbose >= 2) VOID(printf("\n")); my_afree((gptr) packed_tree); @@ -2507,7 +2507,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts) end_pos-=count->max_zero_fill; field_length-=count->max_zero_fill; - switch(count->field_type) { + switch (count->field_type) { case FIELD_SKIP_ZERO: if (!memcmp((byte*) start_pos,zero_string,field_length)) { @@ -2726,6 +2726,7 @@ static int compress_isam_file(PACK_MRG_INFO *mrg, HUFF_COUNTS *huff_counts) break; } case FIELD_LAST: + case FIELD_enum_val_count: abort(); /* Impossible */ } start_pos+=count->max_zero_fill; |