# HG changeset patch # User asl # Date 1123101909 0 # Node ID fa70ef591baf4b630ff726161a9881e4f28b0714 # Parent efbe5b41658e9a50d306870baa9e5bcf91230a1b * tests/heaptest.c (test_pat): Casts to prevent compiler warnings. * tests/testaux.hxx: new cannot be both global and static. diff --git a/packages/services/memalloc/common/current/ChangeLog b/packages/services/memalloc/common/current/ChangeLog --- a/packages/services/memalloc/common/current/ChangeLog +++ b/packages/services/memalloc/common/current/ChangeLog @@ -1,3 +1,8 @@ +2005-07-30 Andrew Lunn + + * tests/heaptest.c (test_pat): Casts to prevent compiler warnings. + * tests/testaux.hxx: new cannot be both global and static. + 2005-07-22 Andrew Lunn * cdl/memalloc.cdl: Use the CXXFLAGS for the native compiler to diff --git a/packages/services/memalloc/common/current/tests/heaptest.c b/packages/services/memalloc/common/current/tests/heaptest.c --- a/packages/services/memalloc/common/current/tests/heaptest.c +++ b/packages/services/memalloc/common/current/tests/heaptest.c @@ -96,7 +96,7 @@ test_pat(unsigned char *buf, int size, int errors=0; unsigned char bpat = pat & 0xFF; - endptra = (int *)((unsigned long)endptr & ~(sizeof(int)-1)); + endptra = (unsigned int *)((unsigned long)endptr & ~(sizeof(int)-1)); // Set to the pattern while (!INTALIGNED(bufptr)) { @@ -195,7 +195,7 @@ cyg_start(void) for (;;) { struct mallinfo info; - char *buf; + unsigned char *buf; info = mallinfo(); diff --git a/packages/services/memalloc/common/current/tests/testaux.hxx b/packages/services/memalloc/common/current/tests/testaux.hxx --- a/packages/services/memalloc/common/current/tests/testaux.hxx +++ b/packages/services/memalloc/common/current/tests/testaux.hxx @@ -55,7 +55,7 @@ //####DESCRIPTIONEND#### -static inline void *operator new(size_t size, void *ptr) { return ptr; }; +inline void *operator new(size_t size, void *ptr) { return ptr; }; #include