From f5368280a090ba41452c829ab581272031ed7819 Mon Sep 17 00:00:00 2001 From: Zane Kaminski Date: Thu, 4 Mar 2021 15:22:34 -0500 Subject: [PATCH] Fix various (benign) warnings --- rdisk.c | 8 ++++---- rdisk.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rdisk.c b/rdisk.c index 7c7e94e..a179ed6 100644 --- a/rdisk.c +++ b/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 #pragma parameter RDCopy24(__A0, __A1, __D0) void RDCopy24(Ptr sourcePtr, Ptr destPtr, unsigned long byteCount) { - char mode = true32b; + signed char mode = true32b; SwapMMUMode(&mode); BlockMove(sourcePtr, destPtr, byteCount); SwapMMUMode(&mode); @@ -295,11 +295,11 @@ OSErr RDCtl(CntrlParamPtr p, DCtlPtr d) { #pragma parameter __D0 RDStat(__A0, __A1) OSErr RDStat(CntrlParamPtr p, DCtlPtr d) { - RDiskStorage_t *c; + //RDiskStorage_t *c; // Fail if dCtlStorage null if (!d->dCtlStorage) { return notOpenErr; } // Dereference dCtlStorage to get pointer to our context - c = *(RDiskStorage_t**)d->dCtlStorage; + //c = *(RDiskStorage_t**)d->dCtlStorage; // Handle status request based on csCode switch (p->csCode) { case kDriveStatus: @@ -313,7 +313,7 @@ OSErr RDStat(CntrlParamPtr p, DCtlPtr d) { OSErr RDClose(IOParamPtr p, DCtlPtr d) { // If dCtlStorage not null, dispose of it if (!d->dCtlStorage) { return noErr; } - RDiskStorage_t *c = *(RDiskStorage_t**)d->dCtlStorage; + //RDiskStorage_t *c = *(RDiskStorage_t**)d->dCtlStorage; HUnlock(d->dCtlStorage); DisposeHandle(d->dCtlStorage); d->dCtlStorage = NULL; diff --git a/rdisk.h b/rdisk.h index 404f436..988d2db 100644 --- a/rdisk.h +++ b/rdisk.h @@ -126,7 +126,7 @@ const char const RDiskIconCompressed[RDISK_COMPRESSED_ICON_SIZE] = { 'R', 'O', 'M', ' ', 'D', 'i', 's', 'k', 0 }; #else -const char const RDiskIcon[RDISK_ICON_SIZE] = { +const char RDiskIcon[RDISK_ICON_SIZE] = { // Icon 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000, 0b00000000,