From 9ce7e4dfbfebf3e750c95ec8ba66bd2344f85b26 Mon Sep 17 00:00:00 2001 From: Rodrigo Torres Date: Tue, 17 Aug 2021 22:13:45 -0300 Subject: [PATCH] Disable warnings for 3rdparty code --- 3rdparty/3rdparty.pro | 3 +++ 3rdparty/zint-2.6.1/backend_qt/backend_qt.pro | 12 +++--------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/3rdparty/3rdparty.pro b/3rdparty/3rdparty.pro index 75d28ff..7ec6a29 100644 --- a/3rdparty/3rdparty.pro +++ b/3rdparty/3rdparty.pro @@ -3,3 +3,6 @@ ZINT_VERSION = 2.6.1 INCLUDEPATH += $${ZINT_PATH}/backend $${ZINT_PATH}/backend_qt DEPENDPATH += $${ZINT_PATH}/backend $${ZINT_PATH}/backend_qt include($${ZINT_PATH}/backend_qt/backend_qt.pro) + +CONFIG -= warn_on +CONFIG += warn_off diff --git a/3rdparty/zint-2.6.1/backend_qt/backend_qt.pro b/3rdparty/zint-2.6.1/backend_qt/backend_qt.pro index 4612c9e..13e5114 100644 --- a/3rdparty/zint-2.6.1/backend_qt/backend_qt.pro +++ b/3rdparty/zint-2.6.1/backend_qt/backend_qt.pro @@ -24,7 +24,9 @@ unix{ } INCLUDEPATH += $$PWD/../backend -DEFINES += _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_WARNINGS ZINT_VERSION=\\\"$$ZINT_VERSION\\\" + +DEFINES += ZINT_VERSION=\\\"$$ZINT_VERSION\\\" + CONFIG(release, debug|release){ TARGET = QtZint } else { @@ -36,14 +38,6 @@ CONFIG(release, debug|release){ LIBS += -lpng } - -win32-msvc* { - DEFINES += _CRT_SECURE_NO_WARNINGS - #QMAKE_CFLAGS += /TP /wd4018 /wd4244 /wd4305 - #QMAKE_CXXFLAGS += /TP /wd4018 /wd4244 /wd4305 -} - - INCLUDEPATH += zint zint/backend zint/backend_qt HEADERS += $$PWD/../backend/aztec.h \