From 7c999bb03223114a4d07f23db2842363d32d1859 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 2 Dec 2001 14:34:01 +0200 Subject: Query cache. Remove some warnings Docs/manual.texi: Solaris and gcc include/ft_global.h: Remove warnings include/myisam.h: Query cache include/myisammrg.h: Query cache include/mysql_com.h: Query cache libmysqld/lib_sql.cc: Query cache myisam/ft_boolean_search.c: Remove warnings myisam/ft_dump.c: Remove warnings myisam/ft_parser.c: Remove warnings myisam/ft_static.c: Remove warnings myisam/ft_update.c: Remove warnings myisam/ftdefs.h: Remove warnings myisam/mi_delete.c: Query cache myisam/mi_locking.c: Query cache myisam/mi_update.c: Query cache myisam/myisamdef.h: Optimize for Ia64 myisammrg/myrg_extra.c: Query cache mysys/mf_keycache.c: DBUG statements regex/cclass.h: Remove warnings regex/cname.h: Remove warnings regex/main.c: Remove warnings regex/regcomp.c: Remove warnings regex/regcomp.ih: Remove warnings regex/regerror.c: Remove warnings regex/reginit.c: Remove warnings regex/split.c: Remove warnings sql-bench/test-connect.sh: Make tests query-cache safe. sql-bench/test-transactions.sh: Fix for old perl versions sql/convert.cc: Query cache sql/ha_myisammrg.cc: Query cache sql/ha_myisammrg.h: Query cache sql/handler.cc: Query cache sql/item_create.cc: Query cache sql/item_func.cc: Remove warnings sql/item_func.h: Remove warnings sql/lex.h: Query cache sql/mysql_priv.h: Query cache sql/mysqld.cc: Query cache sql/net_serv.cc: Query cache sql/sql_cache.cc: Query cache sql/sql_class.cc: Query cache sql/sql_class.h: Query cache sql/sql_db.cc: Query cache sql/sql_delete.cc: Query cache sql/sql_insert.cc: Query cache sql/sql_parse.cc: Query cache sql/sql_select.cc: Query cache sql/sql_table.cc: Query cache sql/sql_update.cc: Query cache sql/sql_yacc.yy: Query cache --- myisam/ft_boolean_search.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'myisam/ft_boolean_search.c') diff --git a/myisam/ft_boolean_search.c b/myisam/ft_boolean_search.c index 0055842c24b..e7baad64d61 100644 --- a/myisam/ft_boolean_search.c +++ b/myisam/ft_boolean_search.c @@ -86,7 +86,7 @@ typedef struct st_ft_info { MEM_ROOT mem_root; } FTB; -int FTB_WORD_cmp(void *v, byte *a, byte *b) +int FTB_WORD_cmp(void *v __attribute__((unused)), byte *a, byte *b) { /* ORDER BY docid, ndepth DESC */ int i=CMP_NUM(((FTB_WORD *)a)->docid, ((FTB_WORD *)b)->docid); @@ -109,7 +109,7 @@ void _ftb_parse_query(FTB *ftb, byte **start, byte *end, return; param.prev=' '; - while (res=ft_get_word(start,end,&w,¶m)) + while ((res=ft_get_word(start,end,&w,¶m))) { byte r=param.plusminus; float weight=(param.pmsign ? nwghts : wghts)[(r>5)?5:((r<-5)?-5:r)]; @@ -280,7 +280,7 @@ void _ftb_climb_the_tree(FTB_WORD *ftbw, my_off_t curdoc) int ft_boolean_read_next(FT_INFO *ftb, char *record) { - FTB_EXPR *ftbe, *up; + FTB_EXPR *ftbe; FTB_WORD *ftbw; MI_INFO *info=ftb->info; MI_KEYDEF *keyinfo=info->s->keyinfo+ftb->keynr; -- cgit v1.2.1