Only disable msvc warning when using msvc. Fixes #254.

This commit is contained in:
Leonardo Zide 2018-09-02 10:21:53 -07:00
parent 5e31d6985b
commit 59ecbcdd5e

View file

@ -14,9 +14,12 @@ equals(QT_MAJOR_VERSION, 5) {
INCLUDEPATH += qt common
CONFIG += precompile_header incremental c++11
win32-msvc* {
QMAKE_CXXFLAGS_WARN_ON += -wd4100
}
win32 {
PRECOMPILED_HEADER = common/lc_global.h
QMAKE_CXXFLAGS_WARN_ON += -wd4100
DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE=1 _CRT_NONSTDC_NO_WARNINGS=1
greaterThan(QT_MAJOR_VERSION, 4) {
INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtZlib