Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2020-09-02 17:50:07 +0300
committerCorinna Vinschen <corinna@vinschen.de>2020-09-03 13:55:32 +0300
commit754386c7f558a686420d4646c101706d9020f5d3 (patch)
tree2b40e3a34f5e8a414da75e1191bd67ed2d01d719 /libgloss/msp430
parenta634adda5af00c5936e3e7a5e2950c05c14981d3 (diff)
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/msp430')
-rw-r--r--libgloss/msp430/sbrk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgloss/msp430/sbrk.c b/libgloss/msp430/sbrk.c
index 0a88b943a..bbc3fb5ba 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)
{