From 3fcb40f94f2112c3f98abf797616656a878790d3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 29 Dec 2003 05:10:55 +0000 Subject: - Disable libdrm verbosity. It isn't important enough yet to make a run-time flag for it. - Fix the (void)atic; tricks to quiet unused variable warnings in ATI template files. Mixing statements and variable defines works in newer compilers, but not pdx's. --- hw/kdrive/ati/ati_drawtmp.h | 8 ++++---- hw/kdrive/ati/r128_blendtmp.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hw/kdrive/ati/ati_drawtmp.h b/hw/kdrive/ati/ati_drawtmp.h index a8a0a7dac..03f88a700 100644 --- a/hw/kdrive/ati/ati_drawtmp.h +++ b/hw/kdrive/ati/ati_drawtmp.h @@ -25,15 +25,15 @@ #ifdef USE_DMA #define TAG(x) x##DMA -#define LOCALS (void)atic; \ - RING_LOCALS +#define LOCALS RING_LOCALS; \ + (void)atic #define BEGIN(x) BEGIN_RING(x * 2) #define OUT_REG(reg, val) OUT_RING_REG(reg, val) #define END() ADVANCE_RING() #else #define TAG(x) x##MMIO -#define LOCALS (void)atis; \ - char *mmio = atic->reg_base +#define LOCALS char *mmio = atic->reg_base; \ + (void)atis #define BEGIN(x) ATIWaitAvailMMIO(x) #define OUT_REG(reg, val) MMIO_OUT32((mmio), (reg), (val)) #define END() diff --git a/hw/kdrive/ati/r128_blendtmp.h b/hw/kdrive/ati/r128_blendtmp.h index ede48fe4c..57eeb21eb 100644 --- a/hw/kdrive/ati/r128_blendtmp.h +++ b/hw/kdrive/ati/r128_blendtmp.h @@ -25,8 +25,8 @@ #ifdef USE_DMA #define TAG(x) x##DMA -#define LOCALS (void)atic; \ - RING_LOCALS +#define LOCALS RING_LOCALS; \ + (void)atic #define BEGIN(x) BEGIN_RING(x * 2) #define OUT_REG(reg, val) OUT_RING_REG(reg, val) #define END() ADVANCE_RING() -- cgit v1.2.1