1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-06 06:32:56 +01:00

Introduce UNUSED(x) macro, mark some variables as unused

This commit is contained in:
Michał Janiszewski
2016-10-03 23:03:09 +02:00
parent b2e21a0e02
commit b0dc6fe5fe
2 changed files with 5 additions and 0 deletions

View File

@@ -142,4 +142,6 @@ typedef struct registers {
assert_struct_size(registers, 7 * 4);
#pragma pack(pop)
#define UNUSED(x) ((void)(x))
#endif

View File

@@ -509,6 +509,9 @@ bool openrct2_setup_rct2_segment()
// necessary. Windows does not need to do this as OpenRCT2 runs as a DLL loaded from the Windows PE.
int len = 0x01429000 - 0x8a4000; // 0xB85000, 12079104 bytes or around 11.5MB
int err = 0;
// in some configurations err and len may be unused
UNUSED(err);
UNUSED(len);
#if defined(USE_MMAP) && (defined(__unix__) || defined(__MACOSX__)) && !defined(NO_RCT2)
#define RDATA_OFFSET 0x004A4000
#define DATASEG_OFFSET 0x005E2000