diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-09-02 15:50:07 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-09-03 12:55:32 +0200 |
commit | 754386c7f558a686420d4646c101706d9020f5d3 (patch) | |
tree | 2b40e3a34f5e8a414da75e1191bd67ed2d01d719 /libgloss | |
parent | a634adda5af00c5936e3e7a5e2950c05c14981d3 (diff) | |
download | newlib-754386c7f558a686420d4646c101706d9020f5d3.zip newlib-754386c7f558a686420d4646c101706d9020f5d3.tar.gz newlib-754386c7f558a686420d4646c101706d9020f5d3.tar.bz2 |
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"
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/msp430/sbrk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgloss/msp430/sbrk.c b/libgloss/msp430/sbrk.c index 0a88b94..bbc3fb5 100644 --- a/libgloss/msp430/sbrk.c +++ b/libgloss/msp430/sbrk.c @@ -11,6 +11,9 @@ Red Hat, Inc. */ +int write (int fd, const char *buf, int len); +void abort (void); + char * _sbrk (int adj) { |