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:
parent
9d97e6010e
commit
56e7b7eaed
75 changed files with 215 additions and 232 deletions
|
@ -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); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue