From accac7950ce8f49a9e9ccaa4be24e96347f4aca3 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 1 Oct 2019 22:22:46 -0700 Subject: Silence some warnings from GCC in the router --- router/router.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/router/router.cpp b/router/router.cpp index 88e75b67..85a75aea 100644 --- a/router/router.cpp +++ b/router/router.cpp @@ -81,7 +81,7 @@ static void AddModule(HMODULE module, const WCHAR *name) { if(drv.Module == module) { - TRACE("Skipping already-loaded module %p\n", module); + TRACE("Skipping already-loaded module %p\n", decltype(std::declval()){module}); FreeLibrary(module); return; } @@ -99,8 +99,8 @@ static void AddModule(HMODULE module, const WCHAR *name) /* Load required functions. */ int err = 0; #define LOAD_PROC(x) do { \ - newdrv.x = reinterpret_cast( \ - GetProcAddress(module, #x)); \ + newdrv.x = reinterpret_cast(reinterpret_cast( \ + GetProcAddress(module, #x))); \ if(!newdrv.x) \ { \ ERR("Failed to find entry point for %s in %ls\n", #x, name); \ @@ -233,7 +233,7 @@ static void AddModule(HMODULE module, const WCHAR *name) DriverList.pop_back(); return; } - TRACE("Loaded module %p, %ls, ALC %d.%d\n", module, name, + TRACE("Loaded module %p, %ls, ALC %d.%d\n", decltype(std::declval()){module}, name, newdrv.ALCVer>>8, newdrv.ALCVer&255); #undef LOAD_PROC } -- cgit v1.2.3