]> granicus.if.org Git - icu/commitdiff
ICU-13001 additional warning cleanup
authorSteven R. Loomis <srl@icu-project.org>
Thu, 21 Sep 2017 22:38:34 +0000 (22:38 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Thu, 21 Sep 2017 22:38:34 +0000 (22:38 +0000)
X-SVN-Rev: 40444

icu4c/source/tools/genrb/wrtxml.cpp

index b4d21b87db3807331571ba1aa4305a155507f21e..58e055d5718c03f5d146d0f6b4a509f0e0fb4514 100644 (file)
@@ -368,6 +368,7 @@ static char* convertAndEscape(char** pDest, int32_t destCap, int32_t* destLength
 #define LF       0x000D
 #define AT_SIGN  0x0040
 
+#if UCONFIG_NO_REGULAR_EXPRESSIONS==0
 static void
 trim(char **src, int32_t *len){
 
@@ -395,7 +396,6 @@ trim(char **src, int32_t *len){
     *len = i+1;
 }
 
-#if UCONFIG_NO_REGULAR_EXPRESSIONS==0 /* donot compile when no RegularExpressions are available */
 static void
 print(UChar* src, int32_t srcLen,const char *tagStart,const char *tagEnd,  UErrorCode *status){
     int32_t bufCapacity   = srcLen*4;