]> granicus.if.org Git - gc/commitdiff
Remove redundant checking of CPPCHECK macro in gc_cpp.h
authorIvan Maidanski <ivmai@mail.ru>
Wed, 15 Aug 2018 16:33:18 +0000 (19:33 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 15 Aug 2018 16:33:18 +0000 (19:33 +0300)
(fix of commit 5e51e8d)

Issue #229 (bdwgc).

* include/gc_cpp.h [(_MSC_VER || __DMC__ || (__CYGWIN32__ || __CYGWIN__
|| __MINGW32__) && !GC_BUILD && !GC_NOT_DLL) && __cplusplus>201103L
&& GC_OPERATOR_NEW_ARRAY] (operator delete[](void*,size_t)): Define
even in case of CPPCHECK.

include/gc_cpp.h

index a5f5e79ba12ab8e10ca6aee98d5695cc542b11a8..3e166e669983a314f3ba1076d0de6dba00bc34f1 100644 (file)
@@ -349,7 +349,7 @@ inline void* operator new(size_t size, GC_NS_QUALIFY(GCPlacement) gcp,
       GC_FREE(obj);
     }
 
-#   if defined(GC_OPERATOR_NEW_ARRAY) && !defined(CPPCHECK)
+#   if defined(GC_OPERATOR_NEW_ARRAY)
       inline void operator delete[](void* obj, size_t size) GC_NOEXCEPT {
         (void)size;
         GC_FREE(obj);