]> granicus.if.org Git - icu/commitdiff
ICU-10624 Swat clang compile warnings.
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 10 Jan 2014 19:20:16 +0000 (19:20 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Fri, 10 Jan 2014 19:20:16 +0000 (19:20 +0000)
X-SVN-Rev: 34861

icu4c/source/test/cintltst/callcoll.c
icu4c/source/test/intltest/dtfmtrtts.cpp
icu4c/source/test/intltest/idnaconf.cpp
icu4c/source/test/intltest/incaltst.cpp
icu4c/source/test/intltest/numfmtst.cpp
icu4c/source/test/intltest/restest.cpp
icu4c/source/test/intltest/restsnew.cpp
icu4c/source/test/intltest/testidna.cpp
icu4c/source/test/intltest/transtst.cpp
icu4c/source/test/intltest/tsmthred.cpp
icu4c/source/test/intltest/tzrulets.cpp

index 6bbe22938ef9363020536434b91573a551b978ff..54ac8858ecba6d7313491e38d82bdf3b35777dcb 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2013, International Business Machines Corporation and
+ * Copyright (c) 1997-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 /*******************************************************************************
@@ -1216,7 +1216,7 @@ TestJitterbug1098(){
          "&\\'<\\\\",
          "&\\\"<'\\'",
          "&'\"'<\\'",
-         '\0'
+         NULL
 
     };
     const UCollationResult results1098[] = {
index 1f1115a449b25befde67cb1ec291ce3aaaea4b9c..deda335c642537e395067506ef7e229d26f1bad1 100644 (file)
@@ -1,6 +1,6 @@
 /***********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2013, International Business Machines Corporation
+ * Copyright (c) 1997-2014, International Business Machines Corporation
  * and others. All Rights Reserved.
  ***********************************************************************/
  
@@ -28,8 +28,6 @@
 #define INFINITE 0
 #endif
 
-static const UVersionInfo ICU_452 = {4,5,2,0};
-
 // Define this to test just a single locale
 //#define TEST_ONE_LOC  "cs_CZ"
 
index 5bf2f34303be064eb0f3a9685d81c4b2ee28cc93..54f94dfa92c3956636e5123b1cd5627c67b75089 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *******************************************************************************
  *
- *   Copyright (C) 2005-2009, International Business Machines
+ *   Copyright (C) 2005-2014, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  *
  *******************************************************************************
@@ -25,7 +25,6 @@
 static const UChar C_TAG[] = {0x3D, 0x3D, 0x3D, 0x3D, 0x3D, 0}; // =====
 static const UChar C_NAMEZONE[] = {0x6E, 0x61, 0x6D, 0x65, 0x7A, 0x6F, 0x6E, 0x65, 0}; // namezone 
 static const UChar C_NAMEBASE[] = {0x6E, 0x61, 0x6D, 0x65, 0x62, 0x61, 0x73, 0x65, 0}; // namebase 
-static const UChar C_NAMEUTF8[] = {0x6E, 0x61, 0x6D, 0x65, 0x75, 0x74, 0x66, 0x38, 0}; // nameutf8 
 
 static const UChar C_TYPE[] = {0x74, 0x79, 0x70, 0x65, 0}; // type
 static const UChar C_TOASCII[]  =  {0x74, 0x6F, 0x61, 0x73, 0x63, 0x69, 0x69, 0};       // toascii
index 9614035af67c022a7052f319a8327cbe298b6909..7627696e7b88d7e07f8ffe32e027c9fd88ddbaaa 100644 (file)
@@ -1,6 +1,6 @@
 /***********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2012, International Business Machines Corporation
+ * Copyright (c) 1997-2014, International Business Machines Corporation
  * and others. All Rights Reserved.
  ***********************************************************************/
 
@@ -54,9 +54,6 @@ static UnicodeString escape( const UnicodeString&src)
 // *****************************************************************************
 //--- move to CalendarTest?
 
-static const double JULIAN_EPOCH = -210866760000000.;
-
-
 // Turn this on to dump the calendar fields 
 #define U_DEBUG_DUMPCALS  
 
index b83ef046b3e274da051b2a18a544aabf5e13fc53..dc5719c01e444b575b775cd03553b63ab2e156cf 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT:
- * Copyright (c) 1997-2013, International Business Machines Corporation and
+ * Copyright (c) 1997-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 /* Modification History:
@@ -42,8 +42,6 @@
 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof(array[0]))
 
 static const UChar EUR[] = {69,85,82,0}; // "EUR"
-static const UChar JPY[] = {0x4A, 0x50, 0x59, 0};
-static const UChar CNY[] = {0x43, 0x4E, 0x59, 0};
 static const UChar ISO_CURRENCY_USD[] = {0x55, 0x53, 0x44, 0}; // "USD"
 
 
@@ -2631,6 +2629,8 @@ void NumberFormatTest::expectPad(DecimalFormat& fmt, const UnicodeString& pat,
 // This test is flaky b/c the symbols for CNY and JPY are equivalent in this locale  - FIXME
 void NumberFormatTest::TestCompatibleCurrencies() {
 /*
+    static const UChar JPY[] = {0x4A, 0x50, 0x59, 0};
+    static const UChar CNY[] = {0x43, 0x4E, 0x59, 0};
     UErrorCode status = U_ZERO_ERROR;
     LocalPointer<NumberFormat> fmt(
         NumberFormat::createCurrencyInstance(Locale::getUS(), status));
index 49f4de96648d63e5cf5e0032332d8ed8aab3fd83..0711b01ec23149cd4fa34af7a4b18b129eab6352 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1997-2009, International Business Machines Corporation and
+ * Copyright (c) 1997-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
@@ -21,7 +21,6 @@
 
 static const UChar kErrorUChars[] = { 0x45, 0x52, 0x52, 0x4f, 0x52, 0 };
 static const int32_t kErrorLength = 5;
-static const int32_t kERROR_COUNT = -1234567;
 
 //***************************************************************************************
 
index dbba470391ece1b0303cb847266da3ab1510ce34..e6240c0907ef1bf5cb457918063fa8cf345c387b 100644 (file)
@@ -1,5 +1,5 @@
 /********************************************************************
- * Copyright (c) 1997-2009, International Business Machines
+ * Copyright (c) 1997-2014, International Business Machines
  * Corporation and others. All Rights Reserved.
  ********************************************************************/
 
@@ -1030,7 +1030,7 @@ NewResourceBundleTest::TestNewTypes() {
     ResourceBundle bundle(testdatapath, Locale("te_IN"),status);
 
     UnicodeString emptyStr = theBundle.getStringEx("emptystring", status);
-    if(!emptyStr.length()==0) {
+    if(emptyStr.length() != 0) {
       logln("Empty string returned invalid value\n");
     }
 
index c24dbe6067adf584f3a0ad1bf9cfd6d7944fab10..d798c5329ef3a06fe7fdeb5013c92cdbde0494ab 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *******************************************************************************
  *
- *   Copyright (C) 2003-2012, International Business Machines
+ *   Copyright (C) 2003-2014, International Business Machines
  *   Corporation and others.  All Rights Reserved.
  *
  *******************************************************************************
@@ -1312,7 +1312,7 @@ void TestIDNA::TestChaining(){
 
 static const int loopCount = 100;
 static const int maxCharCount = 20;
-static const int maxCodePoint = 0x10ffff;
+
 static uint32_t
 randul()
 {
index 41a1b789ed028f878766d16cd8e4fd972b9c58d2..c6e7b41bcf6a481aae7155667741228a2ac080f6 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (C) 1999-2013, International Business Machines
+*   Copyright (C) 1999-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *   Date        Name        Description
@@ -198,7 +198,6 @@ TransliteratorTest::runIndexedTest(int32_t index, UBool exec,
     }
 }
 
-static const UVersionInfo ICU_39 = {3,9,4,0};
 /**
  * Make sure every system transliterator can be instantiated.
  * 
@@ -4283,7 +4282,6 @@ static const char* BEGIN_END_RULES[] = {
     "::Upper(Lower);"
     "::([XYZ]);"
 };
-static const int32_t BEGIN_END_RULES_length = (int32_t)(sizeof(BEGIN_END_RULES) / sizeof(BEGIN_END_RULES[0]));
 
 /*
 (This entire test is commented out below and will need some heavy revision when we re-add
index e253235fc69f8456500cc291f610449851fbd675..72b6481bcd7db394286ea46ad092ef9881814977 100644 (file)
@@ -1,6 +1,6 @@
 /********************************************************************
  * COPYRIGHT: 
- * Copyright (c) 1999-2013, International Business Machines Corporation and
+ * Copyright (c) 1999-2014, International Business Machines Corporation and
  * others. All Rights Reserved.
  ********************************************************************/
 
@@ -629,7 +629,6 @@ UnicodeString showDifference(const UnicodeString& expected, const UnicodeString&
 
 const int kFormatThreadIterations = 100;  // # of iterations per thread
 const int kFormatThreadThreads    = 10;  // # of threads to spawn   
-const int kFormatThreadPatience   = 60;  // time in seconds to wait for all threads
 
 #if !UCONFIG_NO_FORMATTING
 
index 77d8ba881f3e5c9cd9e0d7561d12e205935bb77b..3a5b25e9f169d5d7c5686cacd8f44003d67f7fb5 100644 (file)
@@ -1,6 +1,6 @@
 /*
 *******************************************************************************
-* Copyright (C) 2007-2012, International Business Machines Corporation and    *
+* Copyright (C) 2007-2014, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
@@ -30,8 +30,6 @@
 #define CASE(id,test) case id: name = #test; if (exec) { logln(#test "---"); logln((UnicodeString)""); test(); } break
 #define HOUR (60*60*1000)
 
-static const UVersionInfo ICU_453 = {4,5,3,0};
-
 static const char *const TESTZIDS[] = {
         "AGT",
         "America/New_York",