From b570b6fa9e85fd2d0881fb9ddb2b2e4d47156748 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 13 Nov 2013 16:20:32 +0100 Subject: Comment out unused variables to prevent warnings --- src/lngconfig.c | 4 ++-- src/recode.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lngconfig.c b/src/lngconfig.c index 2b38e03..73b555b 100644 --- a/src/lngconfig.c +++ b/src/lngconfig.c @@ -604,7 +604,7 @@ rcc_charset_id rccConfigGetCurrentCharset(rcc_language_config config, rcc_class_ rcc_class_default_charset *defcharset; const char *lang; - rcc_language *language; +// rcc_language *language; rcc_class_ptr *classes; rcc_class *cl; @@ -626,7 +626,7 @@ rcc_charset_id rccConfigGetCurrentCharset(rcc_language_config config, rcc_class_ } if (!config->language) return (rcc_charset_id)-1; - else language = config->language; +// else language = config->language; classes = config->ctx->classes; diff --git a/src/recode.c b/src/recode.c index 3b1bc02..f2b0c20 100644 --- a/src/recode.c +++ b/src/recode.c @@ -70,7 +70,7 @@ static rcc_language_id rccDetectLanguageInternal(rcc_context ctx, rcc_class_id c rcc_option_value usedb4; rcc_language_id bestlang = (rcc_language_id)-1; size_t bestlongest = RCC_ACCEPTABLE_LENGTH; - size_t bestownlongest = RCC_ACCEPTABLE_LENGTH; +// size_t bestownlongest = RCC_ACCEPTABLE_LENGTH; unsigned long bestown = 0; double bestres = RCC_ACCEPTABLE_PROBABILITY; char *best_string = NULL; @@ -224,7 +224,7 @@ static rcc_language_id rccDetectLanguageInternal(rcc_context ctx, rcc_class_id c bestlongest = longest; best_string = recoded; bestown = own; - bestownlongest = ownlongest; +// bestownlongest = ownlongest; if ((ownres > RCC_REQUIRED_PROBABILITY)&&(ownlongest > RCC_REQUIRED_LENGTH)) { bestfixlang = bestlang; -- cgit v1.2.3