From: Heikki Levanto Date: Thu, 13 Jul 2000 10:14:20 +0000 (+0000) Subject: Removed compiler warnings when making zebra X-Git-Tag: ZEBRA.1.1~63 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=120b9ad8cd0e1d1a6522582bb14fa92a3ecaed6e Removed compiler warnings when making zebra --- diff --git a/index/invstat.c b/index/invstat.c index d1c8fe2..ce82cd6 100644 --- a/index/invstat.c +++ b/index/invstat.c @@ -136,6 +136,9 @@ void inv_prstat (BFiles bfs) ISAM isam = NULL; ISAMC isamc = NULL; ISAMD isamd = NULL; + int blocks; + int size; + int count; #endif Records records; int i, prev; @@ -143,9 +146,6 @@ void inv_prstat (BFiles bfs) int after = 1000000000; struct inv_stat_info stat_info; char term_dict[2*IT_MAX_WORD+2]; - int blocks; - int size; - int count; term_dict[0] = 1; term_dict[1] = 0; @@ -323,7 +323,10 @@ void inv_prstat (BFiles bfs) /* * * $Log: invstat.c,v $ - * Revision 1.20 1999-12-01 13:30:30 adam + * Revision 1.21 2000-07-13 10:14:20 heikki + * Removed compiler warnings when making zebra + * + * Revision 1.20 1999/12/01 13:30:30 adam * Updated configure for Zmbol/Zebra dependent settings. * * Revision 1.19 1999/11/30 13:48:03 adam diff --git a/index/recindex.c b/index/recindex.c index 29006d7..5fbbaed 100644 --- a/index/recindex.c +++ b/index/recindex.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: recindex.c,v $ - * Revision 1.29 2000-04-05 09:49:35 adam + * Revision 1.30 2000-07-13 10:14:20 heikki + * Removed compiler warnings when making zebra + * + * Revision 1.29 2000/04/05 09:49:35 adam * On Unix, zebra/z'mbol uses automake. * * Revision 1.28 1999/12/08 22:44:45 adam @@ -669,7 +672,9 @@ static Record rec_get_int (Records p, int sysno) char *nptr, *cptr; char *in_buf = 0; char *bz_buf = 0; +#if HAVE_BZLIB_H int bz_size; +#endif char compression_method; assert (sysno > 0);