# HG changeset patch # User chainsaw # Date 1136767745 28800 # Node ID 548073bede0b0b6d87f50fc78b5dbb17f5e9c320 # Parent bbbbfd16996cb32e55d3273b6d15493f4439accf [svn] Experimental fix for the 56 warnings emitted by GCC4 when it encounters PsxBios.c; by an anonymous contributor. Stability to be assessed in the coming weeks. diff -r bbbbfd16996c -r 548073bede0b Plugins/Input/sexypsf/PsxMem.h --- a/Plugins/Input/sexypsf/PsxMem.h Sun Jan 08 16:03:37 2006 -0800 +++ b/Plugins/Input/sexypsf/PsxMem.h Sun Jan 08 16:49:05 2006 -0800 @@ -57,7 +57,7 @@ char **psxMemLUT; -#define PSXM(mem) (psxMemLUT[(mem) >> 16] == 0 ? NULL : (void*)(psxMemLUT[(mem) >> 16] + ((mem) & 0xffff))) +#define PSXM(mem) (psxMemLUT[(mem) >> 16] == 0 ? "" : (void*)(psxMemLUT[(mem) >> 16] + ((mem) & 0xffff))) #define PSXMu8(mem) (*(u8 *)PSXM(mem)) #define PSXMu32(mem) (*(u32*)PSXM(mem))