From: Jacek Caban <jacek@codeweavers.com> Fixes -Wunused-but-set-global warnings. --- dlls/ntdll/relay.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c index cb91562d615..493881962e9 100644 --- a/dlls/ntdll/relay.c +++ b/dlls/ntdll/relay.c @@ -72,12 +72,15 @@ struct relay_private_data static const WCHAR **debug_relay_excludelist; static const WCHAR **debug_relay_includelist; -static const WCHAR **debug_snoop_excludelist; -static const WCHAR **debug_snoop_includelist; static const WCHAR **debug_from_relay_excludelist; static const WCHAR **debug_from_relay_includelist; + +#ifdef __i386__ +static const WCHAR **debug_snoop_excludelist; +static const WCHAR **debug_snoop_includelist; static const WCHAR **debug_from_snoop_excludelist; static const WCHAR **debug_from_snoop_includelist; +#endif static RTL_RUN_ONCE init_once = RTL_RUN_ONCE_INIT; @@ -177,12 +180,14 @@ static DWORD WINAPI init_debug_lists( RTL_RUN_ONCE *once, void *param, void **co debug_relay_includelist = load_list( hkey, L"RelayInclude" ); debug_relay_excludelist = load_list( hkey, L"RelayExclude" ); - debug_snoop_includelist = load_list( hkey, L"SnoopInclude" ); - debug_snoop_excludelist = load_list( hkey, L"SnoopExclude" ); debug_from_relay_includelist = load_list( hkey, L"RelayFromInclude" ); debug_from_relay_excludelist = load_list( hkey, L"RelayFromExclude" ); +#ifdef __i386__ + debug_snoop_includelist = load_list( hkey, L"SnoopInclude" ); + debug_snoop_excludelist = load_list( hkey, L"SnoopExclude" ); debug_from_snoop_includelist = load_list( hkey, L"SnoopFromInclude" ); debug_from_snoop_excludelist = load_list( hkey, L"SnoopFromExclude" ); +#endif NtClose( hkey ); return TRUE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10880