]> granicus.if.org Git - icu/commitdiff
ICU-10624 Fix windows build error introduced with earlier compile warning fix.
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 10 Jan 2014 18:14:31 +0000 (18:14 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Fri, 10 Jan 2014 18:14:31 +0000 (18:14 +0000)
X-SVN-Rev: 34859

icu4c/source/test/cintltst/ccapitst.c

index b238ee65d7c68bc297d2ef8fcf4433d9cb90aa0d..9d529e3deab0544a3fd015f63dcfbacfdaa1908d 100644 (file)
@@ -837,8 +837,11 @@ static void TestConvert()
 
 
         /*Reads the BOM*/
-        size_t numRead = fread(&BOM, sizeof(UChar), 1, ucs_file_in);
-        (void)numRead;
+        {
+            // Note: gcc produces a compile warning if the return value from fread() is ignored.
+            size_t numRead = fread(&BOM, sizeof(UChar), 1, ucs_file_in);
+            (void)numRead;
+        }
         if (BOM!=0xFEFF && BOM!=0xFFFE) 
         {
             log_err("File Missing BOM...Bailing!\n");