summaryrefslogtreecommitdiff
path: root/sql/sql_cursor.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-02-06 23:32:02 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2018-02-07 20:19:40 +0000
commit8fe04a3df37d65254142c6d1297eda32c1013f7f (patch)
tree46942e3ffc78ca7de8ae593d759993f83fd85c68 /sql/sql_cursor.h
parent282b652028ca79baa5a43aa5356d779a688947a8 (diff)
downloadmariadb-git-8fe04a3df37d65254142c6d1297eda32c1013f7f.tar.gz
Windows, compile : reenable previously disabled warning C4291
no matching operator delete found; memory will not be freed if initialization throws an exception Added a no-op delete() for MEM_ROOT based placement-new()
Diffstat (limited to 'sql/sql_cursor.h')
-rw-r--r--sql/sql_cursor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cursor.h b/sql/sql_cursor.h
index 6fa72a2005d..740a658b7c0 100644
--- a/sql/sql_cursor.h
+++ b/sql/sql_cursor.h
@@ -62,6 +62,7 @@ public:
virtual ~Server_side_cursor();
static void operator delete(void *ptr, size_t size);
+ static void operator delete(void *, MEM_ROOT *){}
};