Re: [PATCH] Fix warnings when building for msp430-elf
Corinna Vinschen via Newlib <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
> >From ddb84425f54bbcff9531f7230cf2d86db2ae4cde Mon Sep 17 00:00:00 2001 > From: Jozef Lawrynowicz <[email protected]> > Date: Wed, 2 Sep 2020 15:50:07 +0100 > Subject: [PATCH] Fix warnings when building for msp430-elf > > The MSP430 target supports both 16-bit and 20-bit size_t and intptr_t. > Some implicit casts in Newlib expect these types to be > "long", (a 32-bit type on MSP430) which causes warnings during > compilation such as: > "cast from pointer to integer of different size" > > --- > libgloss/msp430/sbrk.c | 3 +++ > newlib/libc/include/sys/config.h | 4 ++-- > newlib/libc/search/db_local.h | 2 +- > newlib/libc/search/hcreate_r.c | 5 +++++ > newlib/libc/stdio/open_memstream.c | 4 ++-- > newlib/libc/stdlib/arc4random.c | 3 ++- > newlib/libc/stdlib/nano-mallocr.c | 22 ++++++++++++---------- > 7 files changed, 27 insertions(+), 16 deletions(-) Pushed. Thanks, Corinna