Commit 453fb270 authored by Richard P. Curnow's avatar Richard P. Curnow

Remove unused variables (fix compiler warnings)

parent b3156fee
......@@ -784,11 +784,10 @@ static void find_threading(struct database *db)/*{{{*/
* must be in the same thread) */
int *ix;
int i, m, np, nm, sm;
int i, m, np, sm;
int next_tid;
np = db->n_msgs;
nm = db->msg_ids->n;
sm = db->msg_ids->size;
ix = new_array(int, np);
......
......@@ -64,8 +64,7 @@ int read_increment(unsigned char **encpos) {/*{{{*/
/*}}}*/
static void read_toktable_db(char *data, struct toktable_db *toktable, int start, unsigned int *uidata)/*{{{*/
{
int n;
n = toktable->n = uidata[start];
toktable->n = uidata[start];
toktable->tok_offsets = uidata + uidata[start+1];
toktable->enc_offsets = uidata + uidata[start+2];
return;
......@@ -73,8 +72,7 @@ static void read_toktable_db(char *data, struct toktable_db *toktable, int start
/*}}}*/
static void read_toktable2_db(char *data, struct toktable2_db *toktable, int start, unsigned int *uidata)/*{{{*/
{
int n;
n = toktable->n = uidata[start];
toktable->n = uidata[start];
toktable->tok_offsets = uidata + uidata[start+1];
toktable->enc0_offsets = uidata + uidata[start+2];
toktable->enc1_offsets = uidata + uidata[start+3];
......
......@@ -929,7 +929,6 @@ static int do_search(struct read_db *db, char **args, char *output_path, int sho
char *andsep;
char *word, *orig_word, *lower_word;
char *equal;
char *p;
int negate;
int had_orsep;
int max_errors;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment