mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-12-22 13:30:07 +00:00
Fix some compile warnings with Xcode project build.
This commit is contained in:
parent
f07b34a451
commit
2ea84d86c7
@ -648,16 +648,16 @@ bool XSERDPort::configure(uint16 config)
|
|||||||
// Set number of data bits
|
// Set number of data bits
|
||||||
switch (config & 0x0c00) {
|
switch (config & 0x0c00) {
|
||||||
case data5:
|
case data5:
|
||||||
mode.c_cflag = mode.c_cflag & ~CSIZE | CS5;
|
mode.c_cflag = (mode.c_cflag & ~CSIZE) | CS5;
|
||||||
break;
|
break;
|
||||||
case data6:
|
case data6:
|
||||||
mode.c_cflag = mode.c_cflag & ~CSIZE | CS6;
|
mode.c_cflag = (mode.c_cflag & ~CSIZE) | CS6;
|
||||||
break;
|
break;
|
||||||
case data7:
|
case data7:
|
||||||
mode.c_cflag = mode.c_cflag & ~CSIZE | CS7;
|
mode.c_cflag = (mode.c_cflag & ~CSIZE) | CS7;
|
||||||
break;
|
break;
|
||||||
case data8:
|
case data8:
|
||||||
mode.c_cflag = mode.c_cflag & ~CSIZE | CS8;
|
mode.c_cflag = (mode.c_cflag & ~CSIZE) | CS8;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,7 +263,7 @@ int16 SonyOpen(uint32 pb, uint32 dce)
|
|||||||
|
|
||||||
// Set up DCE
|
// Set up DCE
|
||||||
WriteMacInt32(dce + dCtlPosition, 0);
|
WriteMacInt32(dce + dCtlPosition, 0);
|
||||||
WriteMacInt16(dce + dCtlQHdr + qFlags, ReadMacInt16(dce + dCtlQHdr + qFlags) & 0xff00 | 3); // Version number, must be >=3 or System 8 will replace us
|
WriteMacInt16(dce + dCtlQHdr + qFlags, (ReadMacInt16(dce + dCtlQHdr + qFlags) & 0xff00) | 3); // Version number, must be >=3 or System 8 will replace us
|
||||||
acc_run_called = false;
|
acc_run_called = false;
|
||||||
|
|
||||||
// Install driver again with refnum -2 (HD20)
|
// Install driver again with refnum -2 (HD20)
|
||||||
@ -520,7 +520,7 @@ int16 SonyStatus(uint32 pb, uint32 dce)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 10: // Get disk type and MFM info
|
case 10: // Get disk type and MFM info
|
||||||
WriteMacInt32(pb + csParam, ReadMacInt32(info->status + dsMFMDrive) & 0xffffff00 | 0xfe); // 0xfe = SWIM2 controller
|
WriteMacInt32(pb + csParam, (ReadMacInt32(info->status + dsMFMDrive) & 0xffffff00) | 0xfe); // 0xfe = SWIM2 controller
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// case 0x4350: // Measure disk speed at a given track ('CP') (not supported)
|
// case 0x4350: // Measure disk speed at a given track ('CP') (not supported)
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSLog(@"%d objects loaded\n", [objects count]);
|
NSLog(@"%lu objects loaded\n", [objects count]);
|
||||||
|
|
||||||
// Release the raw nib data.
|
// Release the raw nib data.
|
||||||
[nib release];
|
[nib release];
|
||||||
|
@ -337,7 +337,7 @@ void TimerReset(void)
|
|||||||
int16 InsTime(uint32 tm, uint16 trap)
|
int16 InsTime(uint32 tm, uint16 trap)
|
||||||
{
|
{
|
||||||
D(bug("InsTime %08lx, trap %04x\n", tm, trap));
|
D(bug("InsTime %08lx, trap %04x\n", tm, trap));
|
||||||
WriteMacInt16((uint32)tm + qType, ReadMacInt16((uint32)tm + qType) & 0x1fff | (trap << 4) & 0x6000);
|
WriteMacInt16((uint32)tm + qType, (ReadMacInt16((uint32)tm + qType) & 0x1fff) | ((trap << 4) & 0x6000));
|
||||||
if (find_desc(tm))
|
if (find_desc(tm))
|
||||||
printf("WARNING: InsTime(%08x): Task re-inserted\n", tm);
|
printf("WARNING: InsTime(%08x): Task re-inserted\n", tm);
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user