The math functions have too many issues to make this viable without
substantially more fixing. Just fix what little else is there.
---
software/include.mak | 1 +
software/libhal/ukb.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/software/include.mak b/software/include.mak
index 727be28..ef926ab 100644
--- a/software/include.mak
+++ b/software/include.mak
@@ -37,6 +37,7 @@ endif
INCLUDES_NOLIBC ?= -nostdinc -I$(MMDIR)/software/include/base
INCLUDES = $(INCLUDES_NOLIBC) -I$(MMDIR)/software/include -I$(MMDIR)/tools
ASFLAGS = $(INCLUDES) -nostdinc
+# later: -Wmissing-prototypes
CFLAGS = -O9 -Wall -Wstrict-prototypes \
-mbarrel-shift-enabled -mmultiply-enabled -mdivide-enabled \
-msign-extend-enabled -fno-builtin -fsigned-char \
diff --git a/software/libhal/ukb.c b/software/libhal/ukb.c
index e15fef6..ac450b7 100644
--- a/software/libhal/ukb.c
+++ b/software/libhal/ukb.c
@@ -27,7 +27,7 @@ static char rx_buf[UKB_RINGBUFFER_SIZE_RX];
static volatile unsigned int rx_produce;
static volatile unsigned int rx_consume;
-char ukb_readchar(void)
+static char ukb_readchar(void)
{
char c;
@@ -37,7 +37,7 @@ char ukb_readchar(void)
return c;
}
-int ukb_readchar_nonblock(void)
+static int ukb_readchar_nonblock(void)
{
return (rx_consume != rx_produce);
}
--
1.7.1
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode