Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2020-07-07 12:52:45 +0300
committerJacques Lucke <jacques@blender.org>2020-07-07 12:52:45 +0300
commit5761cb9ee2ac38433751b148ba0a4f7f53d7d6ba (patch)
tree0271c2225e8380fb6d22f5639dcda36e51f5a3ea /intern/guardedalloc
parent80fe5e1b15c03ddf363617febf01b8090d1a42b5 (diff)
Guarded Allocator: add missing operator delete
This resolves warning C4291 on windows.
Diffstat (limited to 'intern/guardedalloc')
-rw-r--r--intern/guardedalloc/MEM_guardedalloc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index 55ea1d0bb70..e775d1c1b9a 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -243,6 +243,9 @@ void MEM_use_guarded_allocator(void);
void *operator new(size_t /*count*/, void *ptr) \
{ \
return ptr; \
+ } \
+ void operator delete(void *, void *) \
+ { \
}
/* Needed when type includes a namespace, then the namespace should not be