From 2e8bdaf58748d0d921a63a01205b14bf3b470d94 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 2 Dec 2024 08:36:32 +0100 Subject: [PATCH] Put a logging-only variable behind an #ifdef. --- src/machine/m_ps1_hdc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/machine/m_ps1_hdc.c b/src/machine/m_ps1_hdc.c index 58a0dd46c..e1bacad6c 100644 --- a/src/machine/m_ps1_hdc.c +++ b/src/machine/m_ps1_hdc.c @@ -720,7 +720,9 @@ hdc_callback(void *priv) off64_t addr; int no_data = 0; int val; +#ifdef ENABLE_PS1_HDC_LOG uint8_t cmd = ccb->cmd & 0x0f; +#endif /* Clear the SSB error bits. */ dev->ssb.track_0 = 0;