]> granicus.if.org Git - icu/commitdiff
ICU-8602 Fix some compiler warnings.
authorMichael Ow <mow@svn.icu-project.org>
Fri, 24 Jun 2011 19:12:33 +0000 (19:12 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Fri, 24 Jun 2011 19:12:33 +0000 (19:12 +0000)
X-SVN-Rev: 30231

icu4c/source/test/cintltst/ccapitst.c
icu4c/source/test/cintltst/cmsccoll.c
icu4c/source/tools/genrb/reslist.c

index 7191ecaf774a8087cb17d65cc81c067c1dc421fe..1b9d5cedf5c9be4066b45425e49faa4e731d131c 100644 (file)
@@ -594,7 +594,7 @@ static void TestConvert()
         if (!myConverter || U_FAILURE(err))   
         {
             log_data_err("Error creating the ibm-949 converter - %s \n", u_errorName(err));
-            fclose(ucs_file_name);
+            fclose(ucs_file_in);
             break;
         }
 
@@ -3346,14 +3346,14 @@ TestToUCountPending(){
     }
     ucnv_setToUCallBack(cnv, UCNV_TO_U_CALLBACK_STOP, NULL, oldToUAction, NULL, &status);
     for(i=0; i<LENGTHOF(toUnicodeTests); ++i) {
-        UChar tgt[10];
+        UChar tgt[20];
         UChar* target = tgt;
         UChar* targetLimit = target + 20;
         const char* source = toUnicodeTests[i].input;
         const char* sourceLimit = source + toUnicodeTests[i].len; 
         int32_t len = 0;
         ucnv_reset(cnv);
-        ucnv_toUnicode(cnv,&target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
+        ucnv_toUnicode(cnv, &target, targetLimit, &source, sourceLimit, NULL, FALSE, &status);
         len = ucnv_toUCountPending(cnv,&status);
         if(U_FAILURE(status)){
             log_err("ucnv_toUnicode call did not succeed. Error: %s\n", u_errorName(status));
index f66755d549d497cacb4d8a2a7f7fcf17cb607935..3be7e3cc92885b09bc765fadb7c5e29f83b2bc85 100644 (file)
@@ -901,7 +901,7 @@ static uint32_t testSwitch(tst_strcoll* func, void *collator, int opts, uint32_t
   realResult = func(collator, opts, first, sLen, second, tLen);
   realStrength = probeStrength(func, collator, opts, first, sLen, second, tLen, realResult);
 
-  if(strength == UCOL_IDENTICAL && realResult != UCOL_IDENTICAL) {
+  if(strength == UCOL_IDENTICAL && realResult != UCOL_EQUAL) {
     logFailure(msg, "tailoring", first, sLen, second, tLen, realResult, realStrength, UCOL_EQUAL, strength, error);
     diffs++;
   } else if(realResult != UCOL_LESS || realStrength != strength) {
index 5b1a433be77e0a0a5c45d30a04a5aa9c9ed6dcf5..a57ed5aa71d3a450c4d73c8c86ecd1b072667b24 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "uarrsort.h"
 #include "uinvchar.h"
+#include "ustr_imp.h"
 
 /*
  * Align binary data at a 16-byte offset from the start of the resource bundle,