From ac91a48182e8beccb67308e0ba0eb6d6bf73ce46 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Tue, 26 Oct 2021 20:02:45 +0200 Subject: [PATCH] PGIF: Fix Wunused-variable warnings. --- pcsx2/ps2/pgif.cpp | 2 +- pcsx2/ps2/pgif.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcsx2/ps2/pgif.cpp b/pcsx2/ps2/pgif.cpp index 64be6abd2c..87185065d1 100644 --- a/pcsx2/ps2/pgif.cpp +++ b/pcsx2/ps2/pgif.cpp @@ -120,7 +120,7 @@ u32 pgif_gp1_buffer[PGIF_CMD_RB_SIZE] = {0}; //Ring buffer data. #define PGIF_DAT_RB_SIZE 0x20000 struct ringBuf_t rb_gp0; //Ring buffer control variables. u32 pgif_gp0_buffer[PGIF_DAT_RB_SIZE] = {0}; //Ring buffer data. - +dma_t dma; //TODO: Make this be called by IopHw.cpp / psxHwReset()... but maybe it should be called by the EE reset func, diff --git a/pcsx2/ps2/pgif.h b/pcsx2/ps2/pgif.h index 52d9be9cda..2be45ed934 100644 --- a/pcsx2/ps2/pgif.h +++ b/pcsx2/ps2/pgif.h @@ -120,7 +120,7 @@ struct PGPUregisters static PGPUregisters& pgpu = (PGPUregisters&)eeHw[0xf300]; //Internal dma flags: -static struct dma_t +struct dma_t { struct dmaState_t { @@ -143,7 +143,7 @@ static struct dma_t u32 current_word; //current word number in Normal DMA u32 address; } normal; -} dma; +}; union tCHCR_DMA {