Revision: 856 Author: christian.egli@xxxxxxxxxxxxxx Date: Thu Dec 13 05:00:37 2012 Log: Fixes for compiler warnings http://code.google.com/p/liblouis/source/detail?r=856 Modified: /trunk/ChangeLog /trunk/NEWS /trunk/liblouis/compileTranslationTable.c /trunk/tests/brl_checks.c ======================================= --- /trunk/ChangeLog Thu Dec 13 02:49:54 2012 +++ /trunk/ChangeLog Thu Dec 13 05:00:37 2012 @@ -1,5 +1,9 @@ 2012-12-13 Christian Egli <christian.egli@xxxxxx> + * tests/brl_checks.c: + * liblouis/compileTranslationTable.c: Fix compiler warnings, like + unused variables, etc. + * configure.ac: * NEWS: Update for release 2.5.2 ======================================= --- /trunk/NEWS Thu Dec 13 02:49:54 2012 +++ /trunk/NEWS Thu Dec 13 05:00:37 2012 @@ -9,6 +9,7 @@ - Update gnulib - Fix a bug in the correct opcode which causes sometimes random results when translating. Thanks to Bert Frees. + - Fixes for compiler warnings. ** New features *** New Braille tables ======================================= --- /trunk/liblouis/compileTranslationTable.c Sun Sep 23 22:07:03 2012 +++ /trunk/liblouis/compileTranslationTable.c Thu Dec 13 05:00:37 2012 @@ -1484,7 +1484,6 @@ { if (ch == '\\') { /* escape sequence */ - int ok = 1; switch (ch = token->chars[in]) { case '\\': @@ -1531,7 +1530,6 @@ not32: compileError (nested, "liblouis has not been compiled for 32-bit Unicode"); - ok = 0; break; } if (token->length - in > 5) @@ -1552,7 +1550,6 @@ break; default: compileError (nested, "invalid escape sequence '\\%c'", ch); - ok = 0; break; } in++; @@ -5207,9 +5204,8 @@ } */ -void -debugHook () +void debugHook () { - char *hook = "debug hook\n"; - printf (hook); + char *hook = "debug hook"; + printf ("%s\n", hook); } ======================================= --- /trunk/tests/brl_checks.c Thu Nov 29 06:18:13 2012 +++ /trunk/tests/brl_checks.c Thu Dec 13 05:00:37 2012 @@ -110,7 +110,7 @@ { widechar *inbuf; widechar *outbuf; - int *inpos, *outpos; + int *inpos; int inlen; int outlen; int i, rv = 0; For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com