ICU-3222 Fix some compiler warnings.

X-SVN-Rev: 14027
This commit is contained in:
George Rhoten 2003-12-06 01:29:37 +00:00
parent 27ae318440
commit 627fc3a29c
3 changed files with 9 additions and 8 deletions

View File

@ -50,5 +50,12 @@ void UDataMemory_setData (UDataMemory *This, const void *dataAddr);
const DataHeader *UDataMemory_normalizeDataPointer(const void *p);
U_CAPI int32_t U_EXPORT2
udata_getLength(UDataMemory *pData);
U_CAPI const void * U_EXPORT2
udata_getRawMemory(UDataMemory *pData);
#endif

View File

@ -22,6 +22,7 @@
#include "cmemory.h"
#include "cstring.h"
#include "filestrm.h"
#include "udatamem.h"
#include "cintltst.h"
#include <sys/types.h>
@ -1015,13 +1016,6 @@ static void TestICUDataName()
/* test data swapping ------------------------------------------------------- */
/* secret exports from udatamem.c */
U_CAPI int32_t U_EXPORT2
udata_getLength(UDataMemory *pData);
U_CAPI const void * U_EXPORT2
udata_getRawMemory(UDataMemory *pData);
/* test cases for maximum data swapping code coverage */
static const struct {
const char *name, *type;

View File

@ -114,7 +114,7 @@ void AstroTest::TestLunarPosition(void) {
};
logln("");
for (int32_t i = 0; i < sizeof(tests)/sizeof(tests[0]); i++) {
for (int32_t i = 0; i < (int32_t)(sizeof(tests)/sizeof(tests[0])); i++) {
gc->clear();
gc->set((int32_t)tests[i][0], (int32_t)tests[i][1]-1, (int32_t)tests[i][2], (int32_t)tests[i][3], (int32_t)tests[i][4]);
astro->setDate(gc->getTime(status));