Suppress unused-local-typedefs warning with Qt4.

gcc 4.8 introduces this new warning which some Qt4 headers triggers. Since we
don't want to change Qt simply disable it. The warning doesn't show up when
compiling with Qt5, so only disable it for Qt4.

Change-Id: Ia8fcf0859e0a370def36bc9b43ed4d096a80db28
This commit is contained in:
Dominik Riebeling 2013-06-09 00:06:38 +02:00
parent 6b3c4beba4
commit 9edc63b0d4

View file

@ -156,6 +156,11 @@ dbg {
DEFINES += RBUTIL _LARGEFILE64_SOURCE
# check version of Qt installation
!contains(QT_MAJOR_VERSION, 5) {
# suppress warnings in Qt 4.8 shown by gcc 4.8
QMAKE_CXXFLAGS += -Wno-unused-local-typedefs
}
# platform specific
win32 {
# use MinGW's implementation of stdio functions for extended format string