test/testiconv.c
changeset 1516 4d241ea8a1cd
parent 1502 d403a39389da
child 1528 ff3322d66771
--- a/test/testiconv.c	Mon Mar 13 04:35:59 2006 +0000
+++ b/test/testiconv.c	Mon Mar 13 05:36:42 2006 +0000
@@ -44,7 +44,7 @@
 	char buffer[BUFSIZ];
 	char *ucs4;
 	char *test[2];
-	int i, j, index = 0;
+	int i, index = 0;
 	FILE *file;
 	int errors = 0;
 
@@ -59,8 +59,9 @@
 
 	while ( fgets(buffer, sizeof(buffer), file) ) {
 		/* Convert to UCS-4 */
+		size_t len;
 		ucs4 = SDL_iconv_string("UCS-4", "UTF-8", buffer, SDL_strlen(buffer)+1);
-		size_t len = (widelen(ucs4)+1)*4;
+		len = (widelen(ucs4)+1)*4;
 		for ( i = 0; i < SDL_arraysize(formats); ++i ) {
 			if ( (SDL_strncasecmp(formats[i], "UTF16", 5) == 0 ||
 			      SDL_strncasecmp(formats[i], "UTF-16", 6) == 0 ||