]> 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>
Tue, 19 Jun 2018 07:44:30 +0000 (10:44 +0300)
* include/gc_cpp.h [_MSC_VER]: Add pragma to disable W4595; add TODO
item.

include/gc_cpp.h

index 83a8477d27cfeac3e1c01b0a3562b91cad20674c..81a748deb774dafdb30c6c60a04a41f02fc22e00 100644 (file)
@@ -279,6 +279,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,