From 81e4f773f544ecc9660fafd51bb5b4783720fb6a Mon Sep 17 00:00:00 2001 From: ripsaw8080 Date: Fri, 5 Feb 2016 13:26:23 +0000 Subject: [PATCH] Comment out unused counter var inside a busy loop. Compilers might be smart enough to drop it, but this way is certain. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3958 --- src/hardware/dbopl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hardware/dbopl.cpp b/src/hardware/dbopl.cpp index 4ec4aaed..44b8a34e 100644 --- a/src/hardware/dbopl.cpp +++ b/src/hardware/dbopl.cpp @@ -1177,9 +1177,9 @@ void Chip::GenerateBlock2( Bitu total, Bit32s* output ) { while ( total > 0 ) { Bit32u samples = ForwardLFO( total ); memset(output, 0, sizeof(Bit32s) * samples); - int count = 0; +// int count = 0; for( Channel* ch = chan; ch < chan + 9; ) { - count++; +// count++; ch = (ch->*(ch->synthHandler))( this, samples, output ); } total -= samples; @@ -1191,9 +1191,9 @@ void Chip::GenerateBlock3( Bitu total, Bit32s* output ) { while ( total > 0 ) { Bit32u samples = ForwardLFO( total ); memset(output, 0, sizeof(Bit32s) * samples *2); - int count = 0; +// int count = 0; for( Channel* ch = chan; ch < chan + 18; ) { - count++; +// count++; ch = (ch->*(ch->synthHandler))( this, samples, output ); } total -= samples;