diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-20 22:11:12 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-20 22:11:12 +0300 |
commit | f2fb45ac1bf02ff7d5a1414a493b5d7040dd3cef (patch) | |
tree | c958e0533e46fe19c208a07531f1519956443bca /build/ymake_conf.py | |
parent | e7aae615944a704e320aaea56e0cebfa2dcf2959 (diff) | |
download | ydb-f2fb45ac1bf02ff7d5a1414a493b5d7040dd3cef.tar.gz |
intermediate changes
ref:ac69799db1f6e61306109e53aaaa1a48754b4a72
Diffstat (limited to 'build/ymake_conf.py')
-rwxr-xr-x | build/ymake_conf.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/ymake_conf.py b/build/ymake_conf.py index 7b80b39c98..8a165e31ca 100755 --- a/build/ymake_conf.py +++ b/build/ymake_conf.py @@ -2386,6 +2386,11 @@ class MSVCCompiler(MSVC, Compiler): '/DWIN32', '/D_WIN32', '/D_WINDOWS', + # Define _CRT_*_NO_WARNINGS macros to prevent ucrt from issuing a warning whenever + # a POSIX-style function is used instead of the alternative Microsoft suggests as a secure / standard replacement + # (e. g. `strncpy()` instead of `strncpy_s()`, `access()` instead of `_access()`) + # For details see: + # https://docs.microsoft.com/en-us/cpp/c-runtime-library/security-features-in-the-crt '/D_CRT_SECURE_NO_WARNINGS', '/D_CRT_NONSTDC_NO_WARNINGS', # Math constants (such as M_PI, M_E, M_SQRT2) are not defined in standard C / C++ |