Skip to content

Commit

Permalink
Fix C4996
Browse files Browse the repository at this point in the history
```
warning C4996: 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators'
```
  • Loading branch information
fjeremic committed Jun 7, 2021
1 parent 3de4141 commit 4bbec8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/modules/platform/os/win.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
list(APPEND OMR_PLATFORM_DEFINITIONS
-DOMR_OS_WINDOWS
-D_CRT_SECURE_NO_WARNINGS
-D_SCL_SECURE_NO_WARNINGS
-DCRTAPI1=_cdecl
-DCRTAPI2=_cdecl
-D_MT
Expand Down

0 comments on commit 4bbec8c

Please sign in to comment.