diff options
author | lateralusX <lateralusx.github@gmail.com> | 2018-10-09 14:27:23 +0300 |
---|---|---|
committer | lateralusX <lateralusx.github@gmail.com> | 2018-10-09 14:27:23 +0300 |
commit | 8201e5607cc52f6fdc0cb2c1b596c360bdaf5bd9 (patch) | |
tree | 133fc95147bf941110dd33a4e6dae4d16e85526f | |
parent | 911e2e4d34bb22a2166c4b4ddd755779e8f06c8c (diff) |
Fix build error due to spectre warning issued on later msvc versions.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 30c00425..59f46808 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -86,6 +86,8 @@ elseif(MSVC) # (performance warning) "C4820" # 'bytes' bytes padding added after construct 'member_name' "C5027" # move assignment operator was implicitly defined as deleted + "C5045" # compiler will insert Spectre mitigation for memory load + # if /Qspectre switch specified ) set(MSVC_LEVEL4_WARNINGS_LIST # See https://connect.microsoft.com/VisualStudio/feedback/details/1217660/warning-c4265-when-using-functional-header |