ICU-5966 Fix some Intel compiler warnings
X-SVN-Rev: 23364
This commit is contained in:
parent
0b7ae18ded
commit
4be82b37e9
@ -729,7 +729,7 @@ getKey_2022(char c,int32_t* key,int32_t* offset){
|
||||
else /*we found it*/{
|
||||
*key = togo;
|
||||
*offset = mid;
|
||||
return escSeqStateTable_Value_2022[mid];
|
||||
return (UCNV_TableStates_2022)escSeqStateTable_Value_2022[mid];
|
||||
}
|
||||
oldmid = mid;
|
||||
|
||||
@ -829,7 +829,7 @@ DONE:
|
||||
#endif
|
||||
case ISO_2022_JP:
|
||||
{
|
||||
StateEnum tempState=nextStateToUnicodeJP[offset];
|
||||
StateEnum tempState=(StateEnum)nextStateToUnicodeJP[offset];
|
||||
switch(tempState) {
|
||||
case INVALID_STATE:
|
||||
*err = U_UNSUPPORTED_ESCAPE_SEQUENCE;
|
||||
@ -868,7 +868,7 @@ DONE:
|
||||
break;
|
||||
case ISO_2022_CN:
|
||||
{
|
||||
StateEnum tempState=nextStateToUnicodeCN[offset];
|
||||
StateEnum tempState=(StateEnum)nextStateToUnicodeCN[offset];
|
||||
switch(tempState) {
|
||||
case INVALID_STATE:
|
||||
*err = U_UNSUPPORTED_ESCAPE_SEQUENCE;
|
||||
|
@ -1665,7 +1665,7 @@ void TimeZoneTest::TestCanonicalID() {
|
||||
|
||||
// Some canonical IDs in CLDR are defined as "Link"
|
||||
// in Olson tzdata.
|
||||
struct {
|
||||
static const struct {
|
||||
const char *alias;
|
||||
const char *zone;
|
||||
} excluded1[] = {
|
||||
@ -1694,7 +1694,7 @@ void TimeZoneTest::TestCanonicalID() {
|
||||
// Until we merge them into one equivalent group
|
||||
// in zoneinfo.res, we exclude them in the test
|
||||
// below.
|
||||
const char* excluded2[] = {
|
||||
static const char* excluded2[] = {
|
||||
"Etc/UCT", "UCT",
|
||||
"Etc/UTC", "UTC",
|
||||
"Etc/Universal", "Universal",
|
||||
@ -1763,10 +1763,10 @@ void TimeZoneTest::TestCanonicalID() {
|
||||
delete s;
|
||||
|
||||
// Testing some special cases
|
||||
struct {
|
||||
static const struct {
|
||||
const char *id;
|
||||
const char *expected;
|
||||
const UBool isSystem;
|
||||
UBool isSystem;
|
||||
} data[] = {
|
||||
{"GMT-03", "GMT-0300", FALSE},
|
||||
{"GMT+4", "GMT+0400", FALSE},
|
||||
|
Loading…
Reference in New Issue
Block a user