From: Ivan Maidanski Date: Tue, 19 Jun 2018 07:44:30 +0000 (+0300) Subject: Suppress 'non-member operator new/delete may not be inline' VC++ warning X-Git-Tag: v7.6.8~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebfb2d0069306568174dcf6e587211e5909783aa;p=gc Suppress 'non-member operator new/delete may not be inline' VC++ warning * include/gc_cpp.h [_MSC_VER]: Add pragma to disable W4595; add TODO item. --- diff --git a/include/gc_cpp.h b/include/gc_cpp.h index 6363f26c..ed333af2 100644 --- a/include/gc_cpp.h +++ b/include/gc_cpp.h @@ -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,