mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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:
@@ -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); }
|
||||
|
Reference in New Issue
Block a user