From 2b95c36b4bf452e6d7b143827f481f58fda04b75 Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Wed, 2 Feb 2022 01:35:40 +0100 Subject: [PATCH] fix clang-cl warnings --- include/my_global.h | 2 +- sql/winservice.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/my_global.h b/include/my_global.h index ed213e69f85..27df0da1454 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -29,7 +29,7 @@ #pragma GCC poison __WIN__ #endif -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined(__clang__) /* Following functions have bugs, when used with UTF-8 active codepage. #include will use the non-buggy wrappers diff --git a/sql/winservice.h b/sql/winservice.h index a14ee73d146..aa0528be5ee 100644 --- a/sql/winservice.h +++ b/sql/winservice.h @@ -166,7 +166,6 @@ static inline BOOL my_ChangeServiceConfig(SC_HANDLE hService, DWORD dwServiceTyp wchar_t *w_Dependencies= NULL; wchar_t *w_ServiceStartName= NULL; wchar_t *w_Password= NULL; - SC_HANDLE sch = NULL; DWORD last_error=0; BOOL ok= TRUE;