From 966089e8bdc5d2cae9c1b9e889c9ca1405d6c29e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 22 Aug 2010 17:59:12 +0000 Subject: Shut up compiler warning. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1964 --- opl/dbopl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'opl/dbopl.c') diff --git a/opl/dbopl.c b/opl/dbopl.c index a4bd6fe5..159cae45 100644 --- a/opl/dbopl.c +++ b/opl/dbopl.c @@ -1239,15 +1239,14 @@ void Chip__WriteReg(Chip *self, Bit32u reg, Bit8u val ) { } } - -static Bit32u Chip__WriteAddr(Chip *self, Bit32u port, Bit8u val ) { +Bit32u Chip__WriteAddr(Chip *self, Bit32u port, Bit8u val ) { switch ( port & 3 ) { case 0: return val; case 2: if ( self->opl3Active || (val == 0x05) ) return 0x100 | val; - else + else return val; } return 0; -- cgit v1.2.3