summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.pro
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-06-09 00:06:38 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-06-09 16:54:59 +0200
commit9edc63b0d4cfddc0659bd7c5eed38f067b8853df (patch)
treee488c2248eb0c2d3b127ced46bc7ab049546c8fa /rbutil/rbutilqt/rbutilqt.pro
parent6b3c4beba4135681f0484d41ac096e1599939bd4 (diff)
downloadrockbox-9edc63b0d4cfddc0659bd7c5eed38f067b8853df.tar.gz
rockbox-9edc63b0d4cfddc0659bd7c5eed38f067b8853df.tar.bz2
rockbox-9edc63b0d4cfddc0659bd7c5eed38f067b8853df.zip
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
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.pro')
-rw-r--r--rbutil/rbutilqt/rbutilqt.pro5
1 files changed, 5 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.pro b/rbutil/rbutilqt/rbutilqt.pro
index 50b2e7c798..49d7a31ef8 100644
--- a/rbutil/rbutilqt/rbutilqt.pro
+++ b/rbutil/rbutilqt/rbutilqt.pro
@@ -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