Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sun Simplify CG6_DRAW() and CG6_BLIT() macros so gcc...



details:   https://anonhg.NetBSD.org/src/rev/155f6319514b
branches:  trunk
changeset: 789889:155f6319514b
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 12 12:42:18 2013 +0000

description:
Simplify CG6_DRAW() and CG6_BLIT() macros so gcc 4.8.1 does not warn about
them - assembler looks good, but Michael, can you please test nevertheless?

diffstat:

 sys/dev/sun/cgsix.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 4627b7746c79 -r 155f6319514b sys/dev/sun/cgsix.c
--- a/sys/dev/sun/cgsix.c       Thu Sep 12 12:28:49 2013 +0000
+++ b/sys/dev/sun/cgsix.c       Thu Sep 12 12:42:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cgsix.c,v 1.61 2013/07/30 19:24:26 macallan Exp $ */
+/*     $NetBSD: cgsix.c,v 1.62 2013/09/12 12:42:18 martin Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.61 2013/07/30 19:24:26 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgsix.c,v 1.62 2013/09/12 12:42:18 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -285,12 +285,12 @@
 /*
  * Run a blitter command
  */
-#define CG6_BLIT(f) { volatile uint32_t foo; foo = f->fbc_blit; }
+#define CG6_BLIT(f) { (void)f->fbc_blit; }
 
 /*
  * Run a drawing command
  */
-#define CG6_DRAW(f) { volatile uint32_t foo; foo = f->fbc_draw; }
+#define CG6_DRAW(f) { (void)f->fbc_draw; }
 
 /*
  * Wait for the whole engine to go idle.  This may not matter in our case;



Home | Main Index | Thread Index | Old Index