Hi, Here is a patch to eliminate some warnings on const casts. Thanks.
Cheers, Haohui
Index: l4/message.h =================================================================== --- l4/message.h (revision 1117) +++ l4/message.h (working copy) @@ -990,7 +990,7 @@ L4_INLINE void L4_AcceptStrings (const L4_Acceptor_t a, const L4_MsgBuffer_t * b) { - L4_StringItem_t *prev, *t, *s = (L4_StringItem_t *) &b->string[0]; + const L4_StringItem_t *prev, *t, *s = (const L4_StringItem_t *) &b->string[0]; int n, i = 1; L4_LoadBR (0, a.raw); @@ -999,7 +999,7 @@ do { t = s; n = s->X.j + 2; - s = (L4_StringItem_t *) &s->X.str.substring_ptr[n-1]; + s = (const L4_StringItem_t *) &s->X.str.substring_ptr[n-1]; L4_LoadBRs (i, n, (L4_Word_t *) t); i += n; } while (t->X.c); Index: l4/powerpc/vregs.h =================================================================== --- l4/powerpc/vregs.h (revision 1717) +++ l4/powerpc/vregs.h (working copy) @@ -258,7 +258,7 @@ *w++ = *br--; } -L4_INLINE void L4_LoadBRs( int i, int k, L4_Word_t * w ) +L4_INLINE void L4_LoadBRs( int i, int k, const L4_Word_t * w ) { L4_Word_t * br = (__L4_PPC_Utcb()) - 16 - i; Index: l4/powerpc64/vregs.h =================================================================== --- l4/powerpc64/vregs.h (revision 1717) +++ l4/powerpc64/vregs.h (working copy) @@ -262,7 +262,7 @@ *w++ = *br++; } -L4_INLINE void L4_LoadBRs( int i, int k, L4_Word_t * w ) +L4_INLINE void L4_LoadBRs( int i, int k, const L4_Word_t * w ) { L4_Word_t * br = &(__L4_PPC64_Utcb())[__L4_TCR_BR_OFFSET + i]; Index: l4/ia32/vregs.h =================================================================== --- l4/ia32/vregs.h (revision 1717) +++ l4/ia32/vregs.h (working copy) @@ -301,7 +301,7 @@ *w++ = *br--; } -L4_INLINE void L4_LoadBRs (int i, int k, L4_Word_t * w) +L4_INLINE void L4_LoadBRs (int i, int k, const L4_Word_t * w) { L4_Word_t * br = (__L4_X86_Utcb ()) - 16 - i; Index: l4/amd64/vregs.h =================================================================== --- l4/amd64/vregs.h (revision 1717) +++ l4/amd64/vregs.h (working copy) @@ -311,7 +311,7 @@ *w++ = *br--; } -L4_INLINE void L4_LoadBRs (int i, int k, L4_Word_t * w) +L4_INLINE void L4_LoadBRs (int i, int k, const L4_Word_t * w) { L4_Word_t * br = (__L4_X86_Utcb ()) - 16 - i;