File tree 2 files changed +6
-2
lines changed 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -399,8 +399,6 @@ if (CLR_CMAKE_HOST_UNIX)
399
399
add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-misleading-indentation>)
400
400
add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-stringop-overflow>)
401
401
add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-stringop-truncation>)
402
- add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-mismatched-new-delete>)
403
- add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-free-nonheap-object>)
404
402
add_compile_options ($<$<COMPILE_LANGUAGE:CXX>:-Wno-placement-new>)
405
403
406
404
check_cxx_compiler_flag(-faligned-new COMPILER_SUPPORTS_F_ALIGNED_NEW)
Original file line number Diff line number Diff line change @@ -421,6 +421,12 @@ class Crst : public CrstBase
421
421
return new BYTE[size];
422
422
}
423
423
424
+ void operator delete (void * mem)
425
+ {
426
+ WRAPPER_NO_CONTRACT;
427
+ delete[] (BYTE*)mem;
428
+ }
429
+
424
430
private:
425
431
// Do not use inplace operator new on Crst. A wrong destructor would be called if the constructor fails.
426
432
// Use CrstStatic or CrstExplicitInit instead of the inplace operator new.
You can’t perform that action at this time.
0 commit comments