Make possible to use clang on Windows (clang-cl)

-DWITH_ASAN can be used as well now, on x64

Fix many clang-cl warnings.
This commit is contained in:
Vladislav Vaintroub 2018-02-20 21:17:36 +00:00
parent 9d97e6010e
commit 56e7b7eaed
75 changed files with 215 additions and 232 deletions

View file

@ -27,13 +27,11 @@ class Sql_alloc
public:
static void *operator new(size_t size) throw ()
{
DBUG_ASSERT(size < UINT_MAX32);
return thd_alloc(thd_get_current_thd(), uint(size));
return thd_alloc(thd_get_current_thd(), size);
}
static void *operator new[](size_t size) throw ()
{
DBUG_ASSERT(size < UINT_MAX32);
return thd_alloc(thd_get_current_thd(), uint(size));
return thd_alloc(thd_get_current_thd(), size);
}
static void *operator new[](size_t size, MEM_ROOT *mem_root) throw ()
{ return alloc_root(mem_root, size); }