]> granicus.if.org Git - gc/commitdiff
Suppress 'non-member operator new/delete may not be inline' VC++ warning
authorIvan Maidanski <ivmai@mail.ru>
Tue, 19 Jun 2018 07:44:30 +0000 (10:44 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 8 Jul 2018 21:06:25 +0000 (00:06 +0300)
* include/gc_cpp.h [_MSC_VER]: Add pragma to disable W4595; add TODO
item.

include/gc_cpp.h

index 6363f26ce13b36055c4d362408d3da40eed86e85..ed333af2cd437a3f111fb1dd6da547663358cc7e 100644 (file)
@@ -252,6 +252,9 @@ extern "C" {
   // Disable warning that "no matching operator delete found; memory will
   // not be freed if initialization throws an exception"
 # pragma warning(disable:4291)
+  // TODO: "non-member operator new or delete may not be declared inline"
+  // warning is disabled for now.
+# pragma warning(disable:4595)
 #endif
 
 inline void* operator new(size_t size, GC_NS_QUALIFY(GCPlacement) gcp,