mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-11-22 03:30:58 +00:00
Fix various (benign) warnings
This commit is contained in:
parent
870334abc7
commit
f5368280a0
8
rdisk.c
8
rdisk.c
@ -50,7 +50,7 @@ static void RDDecodeSettings(Ptr unmountEN, Ptr mountEN, Ptr ramEN, Ptr dbgEN, P
|
|||||||
// Switch to 32-bit mode and copy
|
// Switch to 32-bit mode and copy
|
||||||
#pragma parameter RDCopy24(__A0, __A1, __D0)
|
#pragma parameter RDCopy24(__A0, __A1, __D0)
|
||||||
void RDCopy24(Ptr sourcePtr, Ptr destPtr, unsigned long byteCount) {
|
void RDCopy24(Ptr sourcePtr, Ptr destPtr, unsigned long byteCount) {
|
||||||
char mode = true32b;
|
signed char mode = true32b;
|
||||||
SwapMMUMode(&mode);
|
SwapMMUMode(&mode);
|
||||||
BlockMove(sourcePtr, destPtr, byteCount);
|
BlockMove(sourcePtr, destPtr, byteCount);
|
||||||
SwapMMUMode(&mode);
|
SwapMMUMode(&mode);
|
||||||
@ -295,11 +295,11 @@ OSErr RDCtl(CntrlParamPtr p, DCtlPtr d) {
|
|||||||
|
|
||||||
#pragma parameter __D0 RDStat(__A0, __A1)
|
#pragma parameter __D0 RDStat(__A0, __A1)
|
||||||
OSErr RDStat(CntrlParamPtr p, DCtlPtr d) {
|
OSErr RDStat(CntrlParamPtr p, DCtlPtr d) {
|
||||||
RDiskStorage_t *c;
|
//RDiskStorage_t *c;
|
||||||
// Fail if dCtlStorage null
|
// Fail if dCtlStorage null
|
||||||
if (!d->dCtlStorage) { return notOpenErr; }
|
if (!d->dCtlStorage) { return notOpenErr; }
|
||||||
// Dereference dCtlStorage to get pointer to our context
|
// Dereference dCtlStorage to get pointer to our context
|
||||||
c = *(RDiskStorage_t**)d->dCtlStorage;
|
//c = *(RDiskStorage_t**)d->dCtlStorage;
|
||||||
// Handle status request based on csCode
|
// Handle status request based on csCode
|
||||||
switch (p->csCode) {
|
switch (p->csCode) {
|
||||||
case kDriveStatus:
|
case kDriveStatus:
|
||||||
@ -313,7 +313,7 @@ OSErr RDStat(CntrlParamPtr p, DCtlPtr d) {
|
|||||||
OSErr RDClose(IOParamPtr p, DCtlPtr d) {
|
OSErr RDClose(IOParamPtr p, DCtlPtr d) {
|
||||||
// If dCtlStorage not null, dispose of it
|
// If dCtlStorage not null, dispose of it
|
||||||
if (!d->dCtlStorage) { return noErr; }
|
if (!d->dCtlStorage) { return noErr; }
|
||||||
RDiskStorage_t *c = *(RDiskStorage_t**)d->dCtlStorage;
|
//RDiskStorage_t *c = *(RDiskStorage_t**)d->dCtlStorage;
|
||||||
HUnlock(d->dCtlStorage);
|
HUnlock(d->dCtlStorage);
|
||||||
DisposeHandle(d->dCtlStorage);
|
DisposeHandle(d->dCtlStorage);
|
||||||
d->dCtlStorage = NULL;
|
d->dCtlStorage = NULL;
|
||||||
|
2
rdisk.h
2
rdisk.h
@ -126,7 +126,7 @@ const char const RDiskIconCompressed[RDISK_COMPRESSED_ICON_SIZE] = {
|
|||||||
'R', 'O', 'M', ' ', 'D', 'i', 's', 'k', 0
|
'R', 'O', 'M', ' ', 'D', 'i', 's', 'k', 0
|
||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
const char const RDiskIcon[RDISK_ICON_SIZE] = {
|
const char RDiskIcon[RDISK_ICON_SIZE] = {
|
||||||
// Icon
|
// Icon
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
|
Loading…
Reference in New Issue
Block a user