From 5d35d64c80b39b251dca93051940f061da58319e Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Sun, 10 Feb 2013 09:31:41 +0200 Subject: [PATCH] Disable operator new warning --- src/common.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/common.h b/src/common.h index 6803fe4c34..907a8375b4 100644 --- a/src/common.h +++ b/src/common.h @@ -220,8 +220,17 @@ typedef intptr_t __attribute__((__may_alias__)) intptr_alias_t; type name; \ } MAKE_NAME(resource_)(name); +#ifdef _MSC_VER +# pragma warning( push ) +# pragma warning( disable : 4291 ) +#endif + inline void* operator new(size_t, void* p) throw() { return p; } +#ifdef _MSC_VER +# pragma warning( pop ) +#endif + namespace vm { inline intptr_alias_t&