summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-08-27 11:28:23 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-08-27 11:33:35 (GMT)
commitf60fedcb490f31576665194153f871eabaf20617 (patch)
tree5503a4eb64fcc7441393c86922d533fde6efcfbc /src/script
parenta5c4c8453ac68f847b1bc3b4e01f710b757e7e1b (diff)
downloadQt-f60fedcb490f31576665194153f871eabaf20617.zip
Qt-f60fedcb490f31576665194153f871eabaf20617.tar.gz
Qt-f60fedcb490f31576665194153f871eabaf20617.tar.bz2
disable a few compiler warnings for qtscript/JavaScriptCore on Windows
We do it when compiling JavaScriptCore as part of QtWebKit, so do it when compiling it as part of QtScript as well, otherwise the excess warning output is just ridiculous. Adopted from patch at https://bugs.webkit.org/show_bug.cgi?id=27709
Diffstat (limited to 'src/script')
-rw-r--r--src/script/script.pro3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/script/script.pro b/src/script/script.pro
index 5844620..301386d 100644
--- a/src/script/script.pro
+++ b/src/script/script.pro
@@ -10,6 +10,9 @@ unix:QMAKE_PKGCONFIG_REQUIRES = QtCore
include(../qbase.pri)
+# Disable a few warnings on Windows.
+win32-msvc*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4503 -wd4800 -wd4819 -wd4996 -wd4396 -wd4099
+
# disable JIT for now
DEFINES += ENABLE_JIT=0
# FIXME: shared the statically built JavaScriptCore