Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc/apm fixed unused variable warning
details: https://anonhg.NetBSD.org/src/rev/b7f992e34556
branches: trunk
changeset: 791220:b7f992e34556
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 09 02:44:52 2013 +0000
description:
fixed unused variable warning
diffstat:
sys/dev/hpc/apm/apmdev.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r fc3234cec29f -r b7f992e34556 sys/dev/hpc/apm/apmdev.c
--- a/sys/dev/hpc/apm/apmdev.c Sat Nov 09 02:23:57 2013 +0000
+++ b/sys/dev/hpc/apm/apmdev.c Sat Nov 09 02:44:52 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: apmdev.c,v 1.27 2012/10/03 23:55:22 christos Exp $ */
+/* $NetBSD: apmdev.c,v 1.28 2013/11/09 02:44:52 christos Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: apmdev.c,v 1.27 2012/10/03 23:55:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: apmdev.c,v 1.28 2013/11/09 02:44:52 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_apm.h"
@@ -461,6 +461,8 @@
if (error == 0 &&
(sc->sc_flags & (SCFLAG_OREAD|SCFLAG_OWRITE)) == 0)
apm_power_print(sc, &pi);
+#else
+ __USE(error);
#endif
apm_record_event(sc, event_code);
break;
Home |
Main Index |
Thread Index |
Old Index