From b10dcef6568b2c10ba7665d9c58806aa547e0bd3 Mon Sep 17 00:00:00 2001 From: fc_botelho Date: Tue, 13 Feb 2007 15:35:38 +0000 Subject: [PATCH] Removed some unused variables at BRZ and FCH algorithm --- configure.ac | 2 +- src/brz.c | 2 ++ src/fch.c | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 5a27c37..4a56077 100644 --- a/configure.ac +++ b/configure.ac @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(cmph, 0.5) +AM_INIT_AUTOMAKE(cmph, 0.6) AM_CONFIG_HEADER(config.h) dnl Checks for programs. diff --git a/src/brz.c b/src/brz.c index 1ccec1e..c8cf2c1 100755 --- a/src/brz.c +++ b/src/brz.c @@ -134,6 +134,8 @@ cmph_t *brz_new(cmph_config_t *mph, float c) case CMPH_FCH: if (c <= 2.0) c = 2.6; break; + default: + assert(0); } brz->c = c; brz->m = mph->key_source->nkeys; diff --git a/src/fch.c b/src/fch.c index ba0357f..4e56a1d 100644 --- a/src/fch.c +++ b/src/fch.c @@ -276,8 +276,6 @@ cmph_t *fch_new(cmph_config_t *mph, float c) } if (sorted_indexes) free (sorted_indexes); sorted_indexes = ordering(buckets); - cmph_uint32 nbuckets = fch_buckets_get_nbuckets(buckets); - cmph_uint32 i = 0; if (mph->verbosity) { fprintf(stderr, "Starting searching step.\n");