Revision: 857 Author: christian.egli@xxxxxxxxxxxxxx Date: Thu Dec 13 05:32:50 2012 Log: Fix more compiler warnings http://code.google.com/p/liblouis/source/detail?r=857 Modified: /trunk/ChangeLog /trunk/tests/en_gb_g1_italics.c /trunk/tests/typeform.c ======================================= --- /trunk/ChangeLog Thu Dec 13 05:00:37 2012 +++ /trunk/ChangeLog Thu Dec 13 05:32:50 2012 @@ -1,8 +1,11 @@ 2012-12-13 Christian Egli <christian.egli@xxxxxx> + * tests/typeform.c: + * tests/en_gb_g1_italics.c: * tests/brl_checks.c: * liblouis/compileTranslationTable.c: Fix compiler warnings, like - unused variables, etc. + unused variables, macro redefinition, comparison between signed + and unsigned integer expressions, etc. * configure.ac: * NEWS: Update for release 2.5.2 ======================================= --- /trunk/tests/en_gb_g1_italics.c Fri Jun 24 02:32:20 2011 +++ /trunk/tests/en_gb_g1_italics.c Thu Dec 13 05:32:50 2012 @@ -3,6 +3,7 @@ #include <stdlib.h> #include "brl_checks.h" +#undef TRANSLATION_TABLE #define TRANSLATION_TABLE "en-gb-g1.utb" int ======================================= --- /trunk/tests/typeform.c Wed Oct 31 08:30:07 2012 +++ /trunk/tests/typeform.c Thu Dec 13 05:32:50 2012 @@ -7,7 +7,7 @@ int main (int argc, char **argv) { - const char strings[][629] = { + const char* strings[] = { "I", "Alice's Adventures In Wonderland", @@ -641,10 +641,10 @@ }; char* table = "unicode.dis,en-us-g2.ctb"; - int i; + unsigned int i; int j; - for (i=0; i<629; i++) { - //printf("%s\n", strings[i]); + for (i=0; i < sizeof(strings)/sizeof(strings[0]); i++) { + /* printf("%s\n", strings[i]); */ int inlen = strlen(strings[i]); int outlen = inlen * 3; widechar* inbuf = malloc(inlen * sizeof(widechar)); For a description of the software, to download it and links to project pages go to http://www.abilitiessoft.com