commit 91f88701b8b13fe227e96f4c0ad03fc7bd6c29ae
Author: Gabriele Simoni <46279871+gabsimoni@users.noreply.github.com>
AuthorDate: Fri Aug 1 12:34:14 2025 +0200
Commit: GitHub <noreply@github.com>
CommitDate: Fri Aug 1 12:34:14 2025 +0200
OPL: used unused variable to silence warning (#1755)
---
opl/opl_win32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opl/opl_win32.c b/opl/opl_win32.c
index ea7b9eeb..f0fd31c3 100644
--- a/opl/opl_win32.c
+++ b/opl/opl_win32.c
@@ -113,7 +113,6 @@ static void OPL_Win32_PortWrite(opl_port_t port, unsigned int value)
static int OPL_Win32_Init(unsigned int port_base)
{
-#ifndef NO_PORT_RW
OSVERSIONINFO version_info;
@@ -126,6 +125,7 @@ static int OPL_Win32_Init(unsigned int port_base)
GetVersionEx(&version_info);
+#ifndef NO_PORT_RW
// On NT-based systems, we must acquire I/O port permissions
// using the ioperm.sys driver.