aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/various/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/various/syscalls.c b/os/various/syscalls.c
index 60b61c9a3..f19f733c7 100644
--- a/os/various/syscalls.c
+++ b/os/various/syscalls.c
@@ -139,7 +139,6 @@ caddr_t _sbrk_r(struct _reent *r, int incr)
chDbgCheck(incr > 0, "_sbrk_r");
- (void)r;
p = chCoreAlloc((size_t)incr);
if (p == NULL) {
__errno_r(r) = ENOMEM;
@@ -147,6 +146,7 @@ caddr_t _sbrk_r(struct _reent *r, int incr)
}
return (caddr_t)p;
#else
+ (void)incr;
__errno_r(r) = ENOMEM;
return (caddr_t)-1;
#endif