Windows: Cleanup warning about non returning dtor

`google::LogMessageFatal::~LogMessageFatal` calls `abort`
which MSVC correctly identifies as 'not returning'
and warns about a potential memory leak.

Given this is intended behaviour and glog is not overly
concerned with shutting down the process nicely, we
can safely ignore this warning.
This commit is contained in:
Ray Molenkamp 2020-03-11 14:07:47 -06:00
parent e6d0a438ab
commit 372dcacbe4
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ if(WIN32)
list(APPEND INC
src/windows
)
# Repress warning about google::LogMessageFatal::~LogMessageFatal
# not returning.
add_definitions("/wd4722")
else()
list(APPEND INC
include