ICU-3500 Fix some compiler warnings.

X-SVN-Rev: 15063
This commit is contained in:
George Rhoten 2004-04-27 23:09:25 +00:00
parent 24ec84cb98
commit 6d74051e89
2 changed files with 15 additions and 15 deletions

View File

@ -253,12 +253,12 @@ protected:
// * @param myParent The name of the myClass's parent.
// * @internal
// */
// #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
// UClassID myClass::getStaticClassID() { \
// static const UClassID CLASS = (UClassID)myParent::getStaticClassID(); \
// return (UClassID)&CLASS; \
// }
//
/* #define UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
UClassID myClass::getStaticClassID() { \
static const UClassID CLASS = (UClassID)myParent::getStaticClassID(); \
return (UClassID)&CLASS; \
}
*/
// /**
// * This macro adds ICU RTTI to an ICU concrete class implementation.
// * This macro should be invoked in *.cpp files. The corresponding
@ -268,12 +268,12 @@ protected:
// * @param myParent The name of the myClass's parent.
// * @internal
// */
// #define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass, myParent) \
// UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
// UClassID myClass::getDynamicClassID() const { \
// return myClass::getStaticClassID(); \
// }
/*#define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass, myParent) \
UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(myClass, myParent) \
UClassID myClass::getDynamicClassID() const { \
return myClass::getStaticClassID(); \
}
*/
U_NAMESPACE_END

View File

@ -252,14 +252,14 @@ ucharstrenum_close(UEnumeration* en) {
static int32_t U_CALLCONV
ucharstrenum_count(UEnumeration* en,
UErrorCode* ec) {
UErrorCode* /*ec*/) {
return ((UCharStringEnumeration*)en)->count;
}
static const char* U_CALLCONV
ucharstrenum_next(UEnumeration* en,
int32_t* resultLength,
UErrorCode* ec) {
UErrorCode* /*ec*/) {
UCharStringEnumeration *e = (UCharStringEnumeration*) en;
if (e->index >= e->count) {
return NULL;
@ -273,7 +273,7 @@ ucharstrenum_next(UEnumeration* en,
static void U_CALLCONV
ucharstrenum_reset(UEnumeration* en,
UErrorCode* ec) {
UErrorCode* /*ec*/) {
((UCharStringEnumeration*)en)->index = 0;
}