From b159bf0bb24a99c7d3ff1b3855f840add63198e5 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Wed, 11 Oct 2017 21:26:27 -0400 Subject: Cleanup 'unused parameter' warnings, a couple of which are actual coding errors. --- syscalls.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'syscalls.c') diff --git a/syscalls.c b/syscalls.c index d7b7211..2243d0b 100644 --- a/syscalls.c +++ b/syscalls.c @@ -101,6 +101,9 @@ int _write_r (struct _reent *r, int file, char * ptr, int len) int _close_r (struct _reent *r, int file) { + r = r; + file = file; + return 0; } @@ -115,6 +118,8 @@ caddr_t _sbrk_r (struct _reent *r, int incr) static char * heap_end; char * prev_heap_end; + r = r; + if (heap_end == NULL) heap_end = & end; -- cgit v1.2.3