diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-08-26 16:18:52 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2020-08-27 10:33:11 +0000 |
commit | 6bd745b50ec7f819061c4e840cc9a469f312c330 (patch) | |
tree | 064dbde8332bd5b941a04c6219153344461b0b0d /src/shared | |
parent | e80829d79fe59c10392da962e91f2268ab796673 (diff) | |
download | qbs-6bd745b50ec7f819061c4e840cc9a469f312c330.tar.gz |
cmake: suppress warning in json.cpp
Qbs compiles with the default warning level while CMake compiles with /
W3 which leads to extra warnings. Suppress such warning in json.cpp.
Change-Id: I2d7ee329f9ec532d36b1de79c013116c0d72c8ce
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/json/json.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/json/json.cpp b/src/shared/json/json.cpp index 949e2745f..6599bd68b 100644 --- a/src/shared/json/json.cpp +++ b/src/shared/json/json.cpp @@ -37,6 +37,10 @@ ** ****************************************************************************/ +#if defined(_MSC_VER) && _MSC_VER > 0 +#define _CRT_SECURE_NO_WARNINGS +#endif + #include <algorithm> #include <atomic> #include <cmath> |