Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/acpi Fix unused variable warning in non-modular appl...
details: https://anonhg.NetBSD.org/src/rev/c60ba0d7df22
branches: trunk
changeset: 328376:c60ba0d7df22
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Apr 01 17:49:40 2014 +0000
description:
Fix unused variable warning in non-modular apple_smc build.
diffstat:
sys/dev/acpi/apple_smc_acpi.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 947de7677da2 -r c60ba0d7df22 sys/dev/acpi/apple_smc_acpi.c
--- a/sys/dev/acpi/apple_smc_acpi.c Tue Apr 01 17:49:30 2014 +0000
+++ b/sys/dev/acpi/apple_smc_acpi.c Tue Apr 01 17:49:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apple_smc_acpi.c,v 1.2 2014/04/01 17:48:39 riastradh Exp $ */
+/* $NetBSD: apple_smc_acpi.c,v 1.3 2014/04/01 17:49:40 riastradh Exp $ */
/*
* Apple System Management Controller: ACPI Attachment
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apple_smc_acpi.c,v 1.2 2014/04/01 17:48:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apple_smc_acpi.c,v 1.3 2014/04/01 17:49:40 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -178,7 +178,9 @@
static int
apple_smc_acpi_modcmd(modcmd_t cmd, void *arg __unused)
{
+#ifdef _MODULE
int error;
+#endif
switch (cmd) {
case MODULE_CMD_INIT:
Home |
Main Index |
Thread Index |
Old Index