From f9e194e1360ba1dba4358933ff4d62e47043ba27 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 12 Oct 2006 04:31:54 +0000 Subject: [PATCH] cpu_exec_aout_makecmds(): consume the arguments even if COMPAT_NOMID is not defined. --- sys/arch/i386/i386/machdep.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 8158e096f1ce..755df0298271 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.580 2006/10/12 01:30:42 christos Exp $ */ +/* $NetBSD: machdep.c,v 1.581 2006/10/12 04:31:54 thorpej Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006 The NetBSD Foundation, Inc. @@ -72,7 +72,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.580 2006/10/12 01:30:42 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.581 2006/10/12 04:31:54 thorpej Exp $"); #include "opt_beep.h" #include "opt_compat_ibcs2.h" @@ -2129,6 +2129,9 @@ cpu_exec_aout_makecmds(struct lwp *l, struct exec_package *epp) #ifdef COMPAT_NOMID if ((error = exec_nomid(l, epp)) == 0) return error; +#else + (void) l; + (void) epp; #endif /* ! COMPAT_NOMID */ return error;