You've already forked mariadb-connector-c
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:
committed by
Georg Richter
parent
058fc080b4
commit
aed8005e2e
@@ -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
|
||||
|
Reference in New Issue
Block a user