diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-03-11 23:07:47 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-03-11 23:07:47 +0300 |
commit | 372dcacbe4f3131115166c725820305a6823a5e1 (patch) | |
tree | 7c29d7bb423fcbed192e232f69cd489fd31c38aa /extern/glog | |
parent | e6d0a438ab951f188f4fc7e2678a0f867b9b350f (diff) |
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.
Diffstat (limited to 'extern/glog')
-rw-r--r-- | extern/glog/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extern/glog/CMakeLists.txt b/extern/glog/CMakeLists.txt index c60e30d0b48..d7ad04435e8 100644 --- a/extern/glog/CMakeLists.txt +++ b/extern/glog/CMakeLists.txt @@ -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 |