We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3e2a2 commit 035a101Copy full SHA for 035a101
googletest/src/gtest-port.cc
@@ -377,12 +377,12 @@ class MemoryIsNotDeallocated
377
old_crtdbg_flag_ = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG);
378
// Set heap allocation block type to _IGNORE_BLOCK so that MS debug CRT
379
// doesn't report mem leak if there's no matching deallocation.
380
- _CrtSetDbgFlag(old_crtdbg_flag_ & ~_CRTDBG_ALLOC_MEM_DF);
+ (void)_CrtSetDbgFlag(old_crtdbg_flag_ & ~_CRTDBG_ALLOC_MEM_DF);
381
}
382
383
~MemoryIsNotDeallocated() {
384
// Restore the original _CRTDBG_ALLOC_MEM_DF flag
385
- _CrtSetDbgFlag(old_crtdbg_flag_);
+ (void)_CrtSetDbgFlag(old_crtdbg_flag_);
386
387
388
private:
0 commit comments