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