From 07b8d258ba9be5f598552aa2f2cfdfb7b7c2fef4 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Sat, 4 Mar 2017 23:19:28 +0100 Subject: [PATCH] ignored warning for unknown pragmas on linux --- src/common/common.pro | 2 ++ src/general.pri | 1 + 2 files changed, 3 insertions(+) diff --git a/src/common/common.pro b/src/common/common.pro index a6275e338..829e5b878 100644 --- a/src/common/common.pro +++ b/src/common/common.pro @@ -65,6 +65,8 @@ linux-g++-32:DESTDIR = ../distrib linux-g++-64:CONFIG += dll linux-g++-64:DESTDIR = ../distrib +linux-g++:QMAKE_CXXFLAGS+=-Wno-unknown-pragmas + win32-msvc2005:CONFIG += staticlib win32-msvc2008:CONFIG += staticlib win32-msvc2010:CONFIG += staticlib diff --git a/src/general.pri b/src/general.pri index 104a7fefd..fa9dcdc86 100644 --- a/src/general.pri +++ b/src/general.pri @@ -20,3 +20,4 @@ MACLIBDIR = ../../external/lib/macx64 # the following line is needed to avoid mismatch between # the awful min/max macros of windows and the limits max win32:DEFINES += NOMINMAX +linux-g++:QMAKE_CXXFLAGS+=-Wno-unknown-pragmas