Disable operator new warning

This commit is contained in:
Alexey Pelykh 2013-02-10 09:31:41 +02:00
parent dd14b10d8d
commit 5d35d64c80

View File

@ -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&