From 75324c10d05a3ab1d794edea635ce1591eac6334 Mon Sep 17 00:00:00 2001 From: Alexei Svitkine Date: Sat, 2 Dec 2017 12:27:27 -0500 Subject: [PATCH] silence some more warnings --- BasiliskII/src/MacOSX/sys_darwin.cpp | 4 ++-- BasiliskII/src/uae_cpu/newcpu.cpp | 2 +- cxmon/src/mon_ppc.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BasiliskII/src/MacOSX/sys_darwin.cpp b/BasiliskII/src/MacOSX/sys_darwin.cpp index 5a798e70..cc6c8a3c 100644 --- a/BasiliskII/src/MacOSX/sys_darwin.cpp +++ b/BasiliskII/src/MacOSX/sys_darwin.cpp @@ -256,7 +256,7 @@ void DarwinAddFloppyPrefs(void) } // Iterate through each floppy - while ( nextFloppy = IOIteratorNext(allFloppies)) + while ((nextFloppy = IOIteratorNext(allFloppies))) { char bsdPath[MAXPATHLEN]; long size; @@ -333,7 +333,7 @@ void DarwinAddSerialPrefs(void) } // Iterate through each modem - while ( nextModem = IOIteratorNext(allModems)) + while ((nextModem = IOIteratorNext(allModems))) { char bsdPath[MAXPATHLEN]; CFTypeRef bsdPathAsCFString = diff --git a/BasiliskII/src/uae_cpu/newcpu.cpp b/BasiliskII/src/uae_cpu/newcpu.cpp index eb14efd6..51f3fcef 100644 --- a/BasiliskII/src/uae_cpu/newcpu.cpp +++ b/BasiliskII/src/uae_cpu/newcpu.cpp @@ -1170,7 +1170,7 @@ void m68k_mull (uae_u32 opcode, uae_u32 src, uae_u16 extra) } #endif } -static char* ccnames[] = +static const char* ccnames[] = { "T ","F ","HI","LS","CC","CS","NE","EQ", "VC","VS","PL","MI","GE","LT","GT","LE" }; diff --git a/cxmon/src/mon_ppc.cpp b/cxmon/src/mon_ppc.cpp index d101e726..615af158 100644 --- a/cxmon/src/mon_ppc.cpp +++ b/cxmon/src/mon_ppc.cpp @@ -30,7 +30,7 @@ static unsigned short imm; // Codes for trap instructions -static char *to_code[32] = { +static const char *to_code[32] = { NULL, "lgt", "llt", NULL, "eq", "lge", "lle", NULL, "gt", NULL, NULL, NULL, "ge", NULL, NULL, NULL, "lt", NULL, NULL, NULL, "le", NULL, NULL, NULL,