From 9a836f1dbf90f07c2fc4151166f7456879d675b0 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 25 Jan 2011 04:16:01 +0100 Subject: Making the compiler a bitch by enabling warnings in full, fixing a few warnings, and making the board actually do slightly something. --- os/src/close.c | 1 + os/src/free.c | 1 + os/src/lseek.c | 1 + os/src/sprintf.c | 2 ++ os/src/write.c | 1 + 5 files changed, 6 insertions(+) (limited to 'os/src') diff --git a/os/src/close.c b/os/src/close.c index 46ee8c5..ae0716f 100644 --- a/os/src/close.c +++ b/os/src/close.c @@ -1,4 +1,5 @@ #include int _close_r(struct _reent * reent, int fd) { + return 0; } diff --git a/os/src/free.c b/os/src/free.c index f2d1fe5..d80aff2 100644 --- a/os/src/free.c +++ b/os/src/free.c @@ -1,4 +1,5 @@ #include +#include void free(void * ptr) { _free_r(_impure_ptr, ptr); diff --git a/os/src/lseek.c b/os/src/lseek.c index 1b86dbb..f132693 100644 --- a/os/src/lseek.c +++ b/os/src/lseek.c @@ -1,4 +1,5 @@ #include _off_t _lseek_r(struct _reent * reent, int fd, _off_t seek, int wheel) { + return 0; } diff --git a/os/src/sprintf.c b/os/src/sprintf.c index 76ea9a2..30d27b3 100644 --- a/os/src/sprintf.c +++ b/os/src/sprintf.c @@ -1,4 +1,5 @@ #include +#include #include int sprintf(char * str, const char * fmt, ...) { @@ -7,4 +8,5 @@ int sprintf(char * str, const char * fmt, ...) { va_start(ap, fmt); r = _vsprintf_r(_impure_ptr, str, fmt, ap); va_end(ap); + return r; } diff --git a/os/src/write.c b/os/src/write.c index a1bf474..a54195f 100644 --- a/os/src/write.c +++ b/os/src/write.c @@ -1,4 +1,5 @@ #include _ssize_t _write_r(struct _reent * reent, int fd, const void * buf, size_t size) { + return 0; } -- cgit v1.2.3