Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/dev Add volatile to a cast to make this build ...
details: https://anonhg.NetBSD.org/src/rev/8bad58ffc1e9
branches: trunk
changeset: 581993:8bad58ffc1e9
user: he <he%NetBSD.org@localhost>
date: Mon Jun 13 00:28:45 2005 +0000
description:
Add volatile to a cast to make this build with -Wcast-qual.
diffstat:
sys/arch/x68k/dev/pow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r da09ce8eee91 -r 8bad58ffc1e9 sys/arch/x68k/dev/pow.c
--- a/sys/arch/x68k/dev/pow.c Mon Jun 13 00:18:49 2005 +0000
+++ b/sys/arch/x68k/dev/pow.c Mon Jun 13 00:28:45 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pow.c,v 1.12 2005/01/18 07:12:15 chs Exp $ */
+/* $NetBSD: pow.c,v 1.13 2005/06/13 00:28:45 he Exp $ */
/*
* Copyright (c) 1995 MINOURA Makoto.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pow.c,v 1.12 2005/01/18 07:12:15 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pow.c,v 1.13 2005/06/13 00:28:45 he Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -154,7 +154,7 @@
return 0;
}
-#define SRAMINT(offset) (*((int *) (&sramtop[offset])))
+#define SRAMINT(offset) (*((volatile int *) (&sramtop[offset])))
#define RTCWAIT DELAY(100)
static int
Home |
Main Index |
Thread Index |
Old Index