]> granicus.if.org Git - icu/commitdiff
ICU-21552 Changed to only display "Encountered empty table" warning in verbose mode.
authorRich Gillam <62772518+richgillam@users.noreply.github.com>
Mon, 22 Mar 2021 21:34:58 +0000 (14:34 -0700)
committerRich Gillam <62772518+richgillam@users.noreply.github.com>
Tue, 23 Mar 2021 00:03:25 +0000 (17:03 -0700)
icu4c/source/tools/genrb/parse.cpp

index 18a8c76dbc5df15560ece84ce1e665207f83b140..5abe5d656733f9be607520c467274d3913a04a0c 100644 (file)
@@ -1191,7 +1191,7 @@ realParseTable(ParseState* state, TableResource *table, char *tag, uint32_t star
 
         if (token == TOK_CLOSE_BRACE)
         {
-            if (!readToken) {
+            if (!readToken && isVerbose()) {
                 warning(startline, "Encountered empty table");
             }
             return table;