1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fix clang on Windows warnings

- STDCALL is ignored for variable argument functions.
- __attribute__ does work for Clang (also if that pretends to be MSVC)
- remove unused function
- simplify ma_getopt, fixes some strange compile error in clang (about
SSE intrinsics)

- fix some clang warnings
This commit is contained in:
Vladislav Vaintroub
2018-02-08 22:38:58 +00:00
committed by Georg Richter
parent 058fc080b4
commit aed8005e2e
10 changed files with 25 additions and 31 deletions

View File

@@ -526,13 +526,6 @@ void read_user_name(char *name)
#endif
#ifdef _WIN32
static my_bool is_NT(void)
{
char *os=getenv("OS");
return (os && !strcmp(os, "Windows_NT")) ? 1 : 0;
}
#endif
/**************************************************************************
** Shut down connection