From 8bef7259e3a12f010bb744a140798aaa3cf17823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 7 Jan 2017 23:03:48 +0100 Subject: Add the g_ prefix to the jit global Jan 04 22:55:01 fwiw, it looks like there are new warnings in the RegCache code Jan 04 22:55:04 Source/Core/Core/PowerPC/Jit64/FPURegCache.cpp:13:33: warning: declaration shadows a variable in the global namespace [-Wshadow] Jan 04 22:56:19 <@Lioncash> yeah, the jit global should have a g_ prefix. This fixes shadowing warnings and adds the g_ prefix to a global. --- Source/UnitTests/Core/PageFaultTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/UnitTests/Core/PageFaultTest.cpp') diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp index 7a1e25885a..5f856b2568 100644 --- a/Source/UnitTests/Core/PageFaultTest.cpp +++ b/Source/UnitTests/Core/PageFaultTest.cpp @@ -56,7 +56,7 @@ TEST(PageFault, PageFault) Common::WriteProtectMemory(data, PAGE_GRAN, false); PageFaultFakeJit pfjit; - jit = &pfjit; + g_jit = &pfjit; pfjit.m_data = data; auto start = std::chrono::high_resolution_clock::now(); @@ -67,7 +67,7 @@ TEST(PageFault, PageFault) ((unsigned long long)std::chrono::duration_cast(diff).count()) EMM::UninstallExceptionHandler(); - jit = nullptr; + g_jit = nullptr; printf("page fault timing:\n"); printf("start->HandleFault %llu ns\n", AS_NS(pfjit.m_pre_unprotect_time - start)); -- cgit v1.2.3