remove unused char suffix[] from cpu.cpp.

Looks like the "configure" script finally updated in the -Wall change
This commit is contained in:
Jonathan Campbell 2014-04-26 15:50:58 -07:00
parent 4e18887bf9
commit 6248e3fb20
2 changed files with 1 additions and 11 deletions

2
configure vendored
View File

@ -4918,7 +4918,7 @@ else
fi
CXXFLAGS="$CXXFLAGS -std=gnu++11"
CXXFLAGS="$CXXFLAGS -std=gnu++11 -Wall"
CXXFLAGS="$CXXFLAGS -mmmx -msse -msse2 -D_FILE_OFFSET_BITS=64"

View File

@ -2736,7 +2736,6 @@ void init_vm86_fake_io() {
}
Bitu CPU_ForceV86FakeIO_In(Bitu port,Bitu len) {
static const char suffix[4] = {'B','W','?','D'};
Bitu old_ax,old_dx,ret;
/* save EAX:EDX and setup DX for IN instruction */
@ -2745,10 +2744,6 @@ Bitu CPU_ForceV86FakeIO_In(Bitu port,Bitu len) {
reg_edx = port;
/* DEBUG */
// fprintf(stderr,"CPU virtual 8086 mode: Forcing CPU to execute 'IN%c 0x%04x so OS can trap it. ",suffix[len-1],port);
// fflush(stderr);
/* make the CPU execute that instruction */
CALLBACK_RunRealFar(vm86_fake_io_seg,vm86_fake_io_offs[(len==4?2:(len-1))+0]);
@ -2756,7 +2751,6 @@ Bitu CPU_ForceV86FakeIO_In(Bitu port,Bitu len) {
ret = reg_eax;
if (len == 1) ret &= 0xFF;
else if (len == 2) ret &= 0xFFFF;
// fprintf(stderr," => v86 result 0x%02x\n",ret);
/* then restore EAX:EDX */
reg_eax = old_ax;
@ -2766,7 +2760,6 @@ Bitu CPU_ForceV86FakeIO_In(Bitu port,Bitu len) {
}
void CPU_ForceV86FakeIO_Out(Bitu port,Bitu val,Bitu len) {
static const char suffix[4] = {'B','W','?','D'};
Bitu old_ax,old_dx;
/* save EAX:EDX and setup DX/AX for OUT instruction */
@ -2776,9 +2769,6 @@ void CPU_ForceV86FakeIO_Out(Bitu port,Bitu val,Bitu len) {
reg_edx = port;
reg_eax = val;
/* DEBUG */
// fprintf(stderr,"CPU virtual 8086 mode: Forcing CPU to execute 'OUT%c 0x%04x,0x%02x so OS can trap it.\n",suffix[len-1],port,val);
/* make the CPU execute that instruction */
CALLBACK_RunRealFar(vm86_fake_io_seg,vm86_fake_io_offs[(len==4?2:(len-1))+3]);