mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-535 Fixed compiler warnings
X-SVN-Rev: 3006
This commit is contained in:
parent
f705711c99
commit
a47dc395b7
8 changed files with 15 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -670,6 +670,7 @@ static const UConverterImpl _EBCDICStatefulImpl={
|
|||
T_UConverter_fromUnicode_EBCDIC_STATEFUL_OFFSETS_LOGIC,
|
||||
T_UConverter_getNextUChar_EBCDIC_STATEFUL,
|
||||
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -79,6 +79,7 @@ static UConverterImpl _HZImpl={
|
|||
UConverter_fromUnicode_HZ_OFFSETS_LOGIC,
|
||||
UConverter_getNextUChar_HZ,
|
||||
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -190,6 +190,7 @@ static const UConverterImpl _Latin1Impl={
|
|||
NULL,
|
||||
T_UConverter_getNextUChar_LATIN_1,
|
||||
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
|
|
@ -2013,7 +2013,8 @@ static const UConverterImpl _MBCSImpl={
|
|||
_MBCSFromUnicodeWithOffsets,
|
||||
_MBCSGetNextUChar,
|
||||
|
||||
_MBCSGetStarters
|
||||
_MBCSGetStarters,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue