From 6a902f4f92f91220a25a794633a34e9669a388ef Mon Sep 17 00:00:00 2001 From: Marijn van der Werf Date: Tue, 11 Oct 2016 00:53:31 +0200 Subject: [PATCH] Ignore unused variable warnings --- test/testpaint/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/testpaint/main.cpp b/test/testpaint/main.cpp index a77b39c4fa..6f23dbb827 100644 --- a/test/testpaint/main.cpp +++ b/test/testpaint/main.cpp @@ -263,7 +263,9 @@ static 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(__unix__) int pageSize = getpagesize(); int numPages = (len + pageSize - 1) / pageSize;