From 2b6a24aebc9e10a7993fda37feaa060ee775d738 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Fri, 10 Jan 2014 18:14:31 +0000 Subject: [PATCH] ICU-10624 Fix windows build error introduced with earlier compile warning fix. X-SVN-Rev: 34859 --- icu4c/source/test/cintltst/ccapitst.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/icu4c/source/test/cintltst/ccapitst.c b/icu4c/source/test/cintltst/ccapitst.c index b238ee65d7c..9d529e3deab 100644 --- a/icu4c/source/test/cintltst/ccapitst.c +++ b/icu4c/source/test/cintltst/ccapitst.c @@ -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");