Commit 3165143f authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrs: prevent a build warning in pp_printf

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 1aabb5cc
...@@ -61,6 +61,7 @@ ifndef CONFIG_NO_PRINTF ...@@ -61,6 +61,7 @@ ifndef CONFIG_NO_PRINTF
OBJ-y += pp_printf/pp-printf.o OBJ-y += pp_printf/pp-printf.o
pp_printf/pp-printf.o: $(wildcard pp_printf/*.[ch]) pp_printf/pp-printf.o: $(wildcard pp_printf/*.[ch])
CFLAGS="$(ARCH_PP_PRINTF_CFLAGS)" \
$(MAKE) -C pp_printf pp-printf.o CC="$(CC)" LD="$(LD)" \ $(MAKE) -C pp_printf pp-printf.o CC="$(CC)" LD="$(LD)" \
CONFIG_PRINTF_64BIT=y CONFIG_PRINTF_64BIT=y
endif endif
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
A := arch-$(ARCH) A := arch-$(ARCH)
CFLAGS += -Itools CFLAGS += -Itools
# Prevent a warning for a missing prototype in pp_printf, bug since ever
ARCH_PP_PRINTF_CFLAGS += -include ../$A/include/strnlen.h
OBJ-y += $A/wrs-startup.o \ OBJ-y += $A/wrs-startup.o \
$A/main-loop.o \ $A/main-loop.o \
......
typedef unsigned int size_t;
extern size_t strnlen(const char *s, size_t max);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment