summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2020-08-12 16:53:06 +0200
committerKai Koehne <kai.koehne@qt.io>2020-08-19 12:46:09 +0200
commit0243951e0aba20a010577f09d6486f21d621d575 (patch)
tree876dd6cb441e3e5b52067612166e3ef35a148194 /src/tools
parent1022944a35acf9fd5de49bda249a3717aefade26 (diff)
MSVC: Fix C4996 warnings when building Qt
Task-number: QTBUG-85227 Pick-to: 5.15 Change-Id: I22ca672d993d77164c91939d1b8fad0c0332b57a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/moc/moc.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools/moc/moc.pro b/src/tools/moc/moc.pro
index 8f66a428c1..c092bbb1b1 100644
--- a/src/tools/moc/moc.pro
+++ b/src/tools/moc/moc.pro
@@ -8,6 +8,9 @@ DEFINES += \
QT_NO_COMPRESS \
QT_NO_FOREACH
+# strerror() is safe to use because moc is single-threaded
+msvc: DEFINES += _CRT_SECURE_NO_WARNINGS
+
include(moc.pri)
HEADERS += qdatetime_p.h
SOURCES += main.cpp