summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/example2.c8
-rw-r--r--src/lngconfig.c4
-rw-r--r--src/recode.c4
-rw-r--r--ui/gtk.c2
-rw-r--r--ui/librccui.c12
5 files changed, 15 insertions, 15 deletions
diff --git a/examples/example2.c b/examples/example2.c
index ebe75a9..13c280e 100644
--- a/examples/example2.c
+++ b/examples/example2.c
@@ -26,7 +26,7 @@
int main(int argc, char *argv[]) {
- rcc_language_id language_id, current_language_id, english_language_id;
+// rcc_language_id language_id, current_language_id, english_language_id;
rcc_string rccstring;
const char *language;
char buf[255];
@@ -48,11 +48,11 @@ int main(int argc, char *argv[]) {
// rccSetOption(NULL, RCC_OPTION_TIMEOUT, 5000000);
// rccSetOption(NULL, RCC_OPTION_CONFIGURED_LANGUAGES_ONLY, 0);
- current_language_id = rccGetCurrentLanguage(NULL);
- english_language_id = rccGetLanguageByName(NULL, "en");
+// current_language_id = rccGetCurrentLanguage(NULL);
+// english_language_id = rccGetLanguageByName(NULL, "en");
if (argc>1) rccSetLanguageByName(NULL, argv[1]);
else rccSetOption(NULL, RCC_OPTION_AUTODETECT_LANGUAGE, 1);
- language_id = rccGetCurrentLanguage(NULL);
+// language_id = rccGetCurrentLanguage(NULL);
language = rccGetCurrentLanguageName(NULL);
if (language) printf("Current Language: %s\n\n", language);
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;
diff --git a/ui/gtk.c b/ui/gtk.c
index 8a73d10..d35c513 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -152,7 +152,7 @@ int rccUiMenuConfigureWidget(rcc_ui_menu_context ctx) {
GtkTreeIter iter;
GtkAdjustment *adjustment;
#else /* GTK_MAJOR_VERSION < 3 */
- GtkWidget *list;
+ GtkWidget *list = NULL;
GtkObject *adjustment;
#endif /* GTK_MAJOR_VERSION */
diff --git a/ui/librccui.c b/ui/librccui.c
index 94c4ba0..c47e35d 100644
--- a/ui/librccui.c
+++ b/ui/librccui.c
@@ -602,14 +602,14 @@ int rccUiSetClassNames(rcc_ui_context ctx) {
int rccUiRestoreLanguage(rcc_ui_context ctx) {
unsigned int i;
- rcc_context rccctx;
- rcc_language_id language_id;
+// rcc_context rccctx;
+// rcc_language_id language_id;
if (!ctx) return -1;
- rccctx = ctx->rccctx;
+// rccctx = ctx->rccctx;
- language_id = (rcc_language_id)rccUiMenuGet(ctx->language);
+// language_id = (rcc_language_id)rccUiMenuGet(ctx->language);
rccUiMenuConfigureWidget(ctx->engine);
//rccUiMenuSet(ctx->engine, (rcc_ui_id)rccConfigGetSelectedEngine(config));
@@ -788,14 +788,14 @@ rcc_ui_frame rccUiGetLanguageFrame(rcc_ui_context ctx, rcc_ui_language_frame_nam
rcc_ui_frame rccUiGetCharsetsFrame(rcc_ui_context ctx, rcc_ui_charset_frame_name *name) {
unsigned int i;
const char *class_name;
- rcc_context rccctx;
+// rcc_context rccctx;
rcc_ui_frame_context framectx;
rcc_ui_frame frame;
rcc_ui_box charset;
if (!ctx) return NULL;
- rccctx = ctx->rccctx;
+// rccctx = ctx->rccctx;
framectx = ctx->charset_frame;
if (framectx->frame) return framectx->frame;