ICU-535 Fixed compiler warnings

X-SVN-Rev: 3006
This commit is contained in:
Ram Viswanadha 2000-11-27 17:40:41 +00:00
parent f705711c99
commit a47dc395b7
8 changed files with 15 additions and 4 deletions

View file

@ -343,7 +343,7 @@ UCNV_TableStates_2022 getKey_2022(char source,
static void _ISO2022Open(UConverter *cnv, const char *name, const char *locale,uint32_t* version, UErrorCode *errorCode);
static void _ISO2022Close(UConverter *converter);
static void _ISO2022Reset(UConverter *converter);
static const char* _ISO2022getName(UConverter* cnv);
static const char* _ISO2022getName(const UConverter* cnv);
/************ protos of functions for setting the initial state *********************/
static void setInitialStateToUnicodeJPCN(UConverter* converter,UConverterDataISO2022 *myConverterData);
@ -680,7 +680,7 @@ _ISO2022Reset(UConverter *converter) {
}
}
static const char* _ISO2022getName(UConverter* cnv){
static const char* _ISO2022getName(const UConverter* cnv){
if(cnv->extraInfo){
UConverterDataISO2022* myData= (UConverterDataISO2022*)cnv->extraInfo;
return myData->name;

View file

@ -155,7 +155,7 @@ typedef void (*UConverterGetStarters)(const UConverter* converter,
* the name field in static data struct should be returned by
* ucnv_getName() API function
*/
typedef const char * (*UConverterGetName) (UConverter *cnv);
typedef const char * (*UConverterGetName) (const UConverter *cnv);
UBool CONVERSION_U_SUCCESS (UErrorCode err);

View file

@ -775,6 +775,7 @@ static const UConverterImpl _UTF8Impl={
T_UConverter_fromUnicode_UTF8_OFFSETS_LOGIC,
T_UConverter_getNextUChar_UTF8,
NULL,
NULL
};
@ -954,6 +955,7 @@ static const UConverterImpl _UTF16BEImpl={
NULL,
T_UConverter_getNextUChar_UTF16_BE,
NULL,
NULL
};
@ -1142,6 +1144,7 @@ static const UConverterImpl _UTF16LEImpl={
NULL,
T_UConverter_getNextUChar_UTF16_LE,
NULL,
NULL
};
@ -1368,6 +1371,7 @@ static const UConverterImpl _UTF32BEImpl = {
/* T_UConverter_fromUnicode_UTF32_BE_OFFSETS_LOGIC, */
T_UConverter_getNextUChar_UTF32_BE,
NULL,
NULL
};
@ -1594,6 +1598,7 @@ static const UConverterImpl _UTF32LEImpl = {
/* T_UConverter_fromUnicode_UTF32_LE_OFFSETS_LOGIC, */
T_UConverter_getNextUChar_UTF32_LE,
NULL,
NULL
};

View file

@ -670,6 +670,7 @@ static const UConverterImpl _EBCDICStatefulImpl={
T_UConverter_fromUnicode_EBCDIC_STATEFUL_OFFSETS_LOGIC,
T_UConverter_getNextUChar_EBCDIC_STATEFUL,
NULL,
NULL
};

View file

@ -79,6 +79,7 @@ static UConverterImpl _HZImpl={
UConverter_fromUnicode_HZ_OFFSETS_LOGIC,
UConverter_getNextUChar_HZ,
NULL,
NULL
};

View file

@ -190,6 +190,7 @@ static const UConverterImpl _Latin1Impl={
NULL,
T_UConverter_getNextUChar_LATIN_1,
NULL,
NULL
};

View file

@ -2013,7 +2013,8 @@ static const UConverterImpl _MBCSImpl={
_MBCSFromUnicodeWithOffsets,
_MBCSGetNextUChar,
_MBCSGetStarters
_MBCSGetStarters,
NULL
};

View file

@ -354,6 +354,7 @@ static const UConverterImpl _SBCSImpl={
NULL,
T_UConverter_getNextUChar_SBCS,
NULL,
NULL
};
@ -764,6 +765,7 @@ static const UConverterImpl _DBCSImpl={
NULL,
T_UConverter_getNextUChar_DBCS,
NULL,
NULL
};