diff options
author | Simon Howard | 2011-02-12 21:25:18 +0000 |
---|---|---|
committer | Simon Howard | 2011-02-12 21:25:18 +0000 |
commit | 4a833cdb45aaf25b6419217a587816ebab5f5bfa (patch) | |
tree | 18be334b10a38fe7febcfdcc946640326bc7b5c3 /opl | |
parent | f7c88d8dd307a277bbecf1b64a916d8d9dbb060e (diff) | |
download | chocolate-doom-4a833cdb45aaf25b6419217a587816ebab5f5bfa.tar.gz chocolate-doom-4a833cdb45aaf25b6419217a587816ebab5f5bfa.tar.bz2 chocolate-doom-4a833cdb45aaf25b6419217a587816ebab5f5bfa.zip |
Turn on gcc warnings for declarations made in a block after a statement;
this is not supported by the Microsoft compiler.
Subversion-branch: /branches/strife-branch
Subversion-revision: 2261
Diffstat (limited to 'opl')
-rw-r--r-- | opl/dbopl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/opl/dbopl.c b/opl/dbopl.c index 0c21e0b6..04e37c15 100644 --- a/opl/dbopl.c +++ b/opl/dbopl.c @@ -412,9 +412,8 @@ static void Operator__UpdateRates(Operator *self, const Chip* chip ) { } static inline Bit32s Operator__RateForward(Operator *self, Bit32u add ) { - Bit32s ret; // haleyjd: GNUisms out! self->rateIndex += add; - ret = self->rateIndex >> RATE_SH; + Bit32s ret = self->rateIndex >> RATE_SH; self->rateIndex = self->rateIndex & RATE_MASK; return ret; } |