Removed warnings

This commit is contained in:
ksb 2007-11-18 12:18:59 +00:00
parent 58d442ab2f
commit 437ba5bbf4
4 changed files with 9 additions and 3 deletions

View file

@ -62,7 +62,7 @@ CFLAGSNO = -I. -I$(CONTIKI)/core -I$(CONTIKI_CPU) -I$(CONTIKI_CPU)/loader \
-I$(CONTIKI)/platform/$(TARGET) \ -I$(CONTIKI)/platform/$(TARGET) \
${addprefix -I,$(APPDIRS)} \ ${addprefix -I,$(APPDIRS)} \
-DWITH_UIP -DWITH_ASCII -DMCK=$(MCK) \ -DWITH_UIP -DWITH_ASCII -DMCK=$(MCK) \
-Wall $(ARCH_FLAGS) -g -Wall -Werror $(ARCH_FLAGS) -g
CFLAGS += $(CFLAGSNO) -O -DRUN_AS_SYSTEM -DROM_RUN CFLAGS += $(CFLAGSNO) -O -DRUN_AS_SYSTEM -DROM_RUN
LDFLAGS += -T $(LINKERSCRIPT) -nostartfiles LDFLAGS += -T $(LINKERSCRIPT) -nostartfiles
@ -145,7 +145,7 @@ ifdef CORE
$(CC) $(LDFLAGS) $(CFLAGS) -nostartfiles -o $@ $(filter-out %.a,$^) $(filter %.a,$^) -lc $(filter %.a,$^) $(CC) $(LDFLAGS) $(CFLAGS) -nostartfiles -o $@ $(filter-out %.a,$^) $(filter %.a,$^) -lc $(filter %.a,$^)
symbols.c: $(CORE) symbols.c: $(CORE)
$(NM) $< | awk -f ../../tools/mknmlist > symbols.c $(NM) $< | awk -f $(CONTIKI_CPU)/builtins.awk -f ../../tools/mknmlist > symbols.c
else else
%.$(TARGET): %-nosyms.$(TARGET) %.$(TARGET): %-nosyms.$(TARGET)

View file

@ -0,0 +1,4 @@
BEGIN {
builtin["_exit"] = "void _exit()";
builtin["strlen"] = "unsigned long strlen()";
}

View file

@ -1,6 +1,7 @@
#include <debug-uart.h> #include <debug-uart.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <errno.h> #include <errno.h>
#include <stdio.h>
int int
_open(const char *name, int flags, int mode) { _open(const char *name, int flags, int mode) {
@ -74,7 +75,7 @@ _sbrk(int incr)
prev_heap_end = heap_end; prev_heap_end = heap_end;
if (heap_end + incr > &__heap_end__) { if (heap_end + incr > &__heap_end__) {
printf("Heap full (requested %d, available %d)\n", printf("Heap full (requested %d, available %d)\n",
incr, &__heap_end__ - heap_end); incr, (int)(&__heap_end__ - heap_end));
errno = ENOMEM; errno = ENOMEM;
return (caddr_t)-1; return (caddr_t)-1;
} }

View file

@ -17,5 +17,6 @@
void rtimer_arch_set(rtimer_clock_t t); void rtimer_arch_set(rtimer_clock_t t);
rtimer_clock_t rtimer_arch_now(void);
#endif /* __RTIMER_ARCH_H__ */ #endif /* __RTIMER_ARCH_H__ */