summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qhash.cpp
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2020-12-03 23:24:18 +0800
committerLi Xinwei <1326710505@qq.com>2020-12-04 13:54:49 +0800
commit013abe320680b3dcd3f6d7e4fb4880e590ba10e6 (patch)
tree0a66b56af0446dc3d17e19870a2f6c2b6ee088d1 /src/corelib/tools/qhash.cpp
parentf071ba31b2e441268518217cbe2ec4fe1c978b31 (diff)
CMake: Avoid MSVC C4996 warnings
The qmake build system defines _CRT_SECURE_NO_WARNINGS in mkspecs/features/qt_module.prf, the cmake build system should do the same thing in qt_internal_add_module(). Adding this definition can avoid warnings like: warning C4996: 'strncpy': This function or variable may be unsafe. As a special case, Bootstrap uses add_library() instead of qt_internal_add_module(), so _CRT_SECURE_NO_WARNINGS should also be defined in src/tools/bootstrap/CMakeLists.txt. Pick-to: 6.0 Change-Id: Ic82193d177f82785fd84948efa78c49ca8d8db46 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src/corelib/tools/qhash.cpp')
0 files changed, 0 insertions, 0 deletions