mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-4288 Fix some compiler warnings.
X-SVN-Rev: 18159
This commit is contained in:
parent
4682d06d32
commit
b015ef5d41
5 changed files with 9 additions and 9 deletions
|
@ -71,7 +71,7 @@ static const UChar kAny[] = {0x61, 0x6e, 0x79, 0x00}; // "any"
|
|||
|
||||
|
||||
U_CDECL_BEGIN
|
||||
static void U_EXPORT2 U_CALLCONV RBBISetTable_deleter(void *p) {
|
||||
static void U_CALLCONV RBBISetTable_deleter(void *p) {
|
||||
RBBISetTableEl *px = (RBBISetTableEl *)p;
|
||||
delete px->key;
|
||||
// Note: px->val is owned by the linked list "fSetsListHead" in scanner.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
//
|
||||
/*
|
||||
***************************************************************************
|
||||
* Copyright (C) 2002-2004 International Business Machines Corporation *
|
||||
* Copyright (C) 2002-2005 International Business Machines Corporation *
|
||||
* and others. All rights reserved. *
|
||||
***************************************************************************
|
||||
*/
|
||||
|
@ -28,7 +28,7 @@
|
|||
// when the hash table is deleted.
|
||||
//
|
||||
U_CDECL_BEGIN
|
||||
static void U_EXPORT2 U_CALLCONV RBBISymbolTableEntry_deleter(void *p) {
|
||||
static void U_CALLCONV RBBISymbolTableEntry_deleter(void *p) {
|
||||
RBBISymbolTableEntry *px = (RBBISymbolTableEntry *)p;
|
||||
delete px;
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ typedef struct DataCacheElement {
|
|||
* udata cleanup function closes the hash table; hash table in turn calls back to
|
||||
* here for each entry.
|
||||
*/
|
||||
static void U_EXPORT2 U_CALLCONV DataCacheElement_deleter(void *pDCEl) {
|
||||
static void U_CALLCONV DataCacheElement_deleter(void *pDCEl) {
|
||||
DataCacheElement *p = (DataCacheElement *)pDCEl;
|
||||
udata_close(p->item); /* unmaps storage */
|
||||
uprv_free(p->name); /* delete the hash key string. */
|
||||
|
|
|
@ -45,7 +45,7 @@ static UHashtable *cache = NULL;
|
|||
static UMTX resbMutex = NULL;
|
||||
|
||||
/* INTERNAL: hashes an entry */
|
||||
static int32_t U_EXPORT2 U_CALLCONV hashEntry(const UHashTok parm) {
|
||||
static int32_t U_CALLCONV hashEntry(const UHashTok parm) {
|
||||
UResourceDataEntry *b = (UResourceDataEntry *)parm.pointer;
|
||||
UHashTok namekey, pathkey;
|
||||
namekey.pointer = b->fName;
|
||||
|
@ -54,7 +54,7 @@ static int32_t U_EXPORT2 U_CALLCONV hashEntry(const UHashTok parm) {
|
|||
}
|
||||
|
||||
/* INTERNAL: compares two entries */
|
||||
static UBool U_EXPORT2 U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
|
||||
static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
|
||||
UResourceDataEntry *b1 = (UResourceDataEntry *)p1.pointer;
|
||||
UResourceDataEntry *b2 = (UResourceDataEntry *)p2.pointer;
|
||||
UHashTok name1, name2, path1, path2;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2003-2004, International Business Machines
|
||||
* Copyright (C) 2003-2005, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -83,7 +83,7 @@ getSPrepFoldingOffset(uint32_t data) {
|
|||
}
|
||||
|
||||
/* hashes an entry */
|
||||
static int32_t U_EXPORT2 U_CALLCONV
|
||||
static int32_t U_CALLCONV
|
||||
hashEntry(const UHashTok parm) {
|
||||
UStringPrepKey *b = (UStringPrepKey *)parm.pointer;
|
||||
UHashTok namekey, pathkey;
|
||||
|
@ -93,7 +93,7 @@ hashEntry(const UHashTok parm) {
|
|||
}
|
||||
|
||||
/* compares two entries */
|
||||
static UBool U_EXPORT2 U_CALLCONV
|
||||
static UBool U_CALLCONV
|
||||
compareEntries(const UHashTok p1, const UHashTok p2) {
|
||||
UStringPrepKey *b1 = (UStringPrepKey *)p1.pointer;
|
||||
UStringPrepKey *b2 = (UStringPrepKey *)p2.pointer;
|
||||
|
|
Loading…
Add table
Reference in a new issue