From 43836a235786b40b100cc1691da9720aa9c5352d Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Tue, 2 Feb 2010 14:42:02 +1100 Subject: Mark unused parameters Signed-off-by: Simon Horman --- purgatory/Makefile | 1 + purgatory/arch/mips/console-mips.c | 4 +++- purgatory/arch/ppc/console-ppc.c | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) (limited to 'purgatory') diff --git a/purgatory/Makefile b/purgatory/Makefile index ceab269..aa3a788 100644 --- a/purgatory/Makefile +++ b/purgatory/Makefile @@ -53,6 +53,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ -I$(srcdir)/purgatory/include \ -I$(srcdir)/purgatory/arch/$(ARCH)/include \ -I$(srcdir)/util_lib/include \ + -I$(srcdir)/include \ -I$(shell $(CC) -print-file-name=include) $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ --no-undefined -nostartfiles -nostdlib -nodefaultlibs \ diff --git a/purgatory/arch/mips/console-mips.c b/purgatory/arch/mips/console-mips.c index 389b7be..af34ecf 100644 --- a/purgatory/arch/mips/console-mips.c +++ b/purgatory/arch/mips/console-mips.c @@ -1,5 +1,7 @@ #include -void putchar(int ch) +#include "unused.h" + +void putchar(int UNUSED(ch)) { /* Nothing for now */ } diff --git a/purgatory/arch/ppc/console-ppc.c b/purgatory/arch/ppc/console-ppc.c index 389b7be..af34ecf 100644 --- a/purgatory/arch/ppc/console-ppc.c +++ b/purgatory/arch/ppc/console-ppc.c @@ -1,5 +1,7 @@ #include -void putchar(int ch) +#include "unused.h" + +void putchar(int UNUSED(ch)) { /* Nothing for now */ } -- cgit