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:
parent
6b3c4beba4
commit
9edc63b0d4
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue