summaryrefslogtreecommitdiffstats
path: root/purgatory
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
committerSimon Horman <horms@verge.net.au>2010-02-02 14:42:02 +1100
commit43836a235786b40b100cc1691da9720aa9c5352d (patch)
treea9c0e8042cf8dc081be66028e53cfcbc9edd3c14 /purgatory
parentc59af3ab34f41f259eb2f019e9f5f9ad3229893f (diff)
downloadkexec-tools-43836a235786b40b100cc1691da9720aa9c5352d.tar.gz
Mark unused parameters
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory')
-rw-r--r--purgatory/Makefile1
-rw-r--r--purgatory/arch/mips/console-mips.c4
-rw-r--r--purgatory/arch/ppc/console-ppc.c4
3 files changed, 7 insertions, 2 deletions
diff --git a/purgatory/Makefile b/purgatory/Makefile
index ceab269d..aa3a788d 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 389b7be0..af34ecfa 100644
--- a/purgatory/arch/mips/console-mips.c
+++ b/purgatory/arch/mips/console-mips.c
@@ -1,5 +1,7 @@
#include <purgatory.h>
-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 389b7be0..af34ecfa 100644
--- a/purgatory/arch/ppc/console-ppc.c
+++ b/purgatory/arch/ppc/console-ppc.c
@@ -1,5 +1,7 @@
#include <purgatory.h>
-void putchar(int ch)
+#include "unused.h"
+
+void putchar(int UNUSED(ch))
{
/* Nothing for now */
}