Mercurial > ecos
changeset 2046:fa70ef591baf
* tests/heaptest.c (test_pat): Casts to prevent compiler warnings.
* tests/testaux.hxx: new cannot be both global and static.
| author | asl |
|---|---|
| date | Wed, 03 Aug 2005 20:45:09 +0000 |
| parents | efbe5b41658e |
| children | f1b03c38f955 |
| files | packages/services/memalloc/common/current/ChangeLog packages/services/memalloc/common/current/tests/heaptest.c packages/services/memalloc/common/current/tests/testaux.hxx |
| diffstat | 3 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/ChangeLog +++ b/packages/services/memalloc/common/current/ChangeLog @@ -1,3 +1,8 @@ +2005-07-30 Andrew Lunn <andrew.lunn@ascom.ch> + + * 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 <andrew.lunn@ascom.ch> * cdl/memalloc.cdl: Use the CXXFLAGS for the native compiler to
--- 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();
--- 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 <pkgconf/hal.h>
