Warning, /graphics/kdiagram/g++.pri is written in an unsupported language. File is not indexed.

0001 # TODO CMAKE PORTING not yet done
0002 *-g++* {
0003   NORMAL_CFLAGS = -Wno-long-long
0004   !win32-g++:NORMAL_CFLAGS +=-ansi
0005   NORMAL_CXXFLAGS = \
0006         -Wnon-virtual-dtor -Wundef -Wcast-align \
0007         -Wchar-subscripts -Wpointer-arith \
0008         -Wwrite-strings -Wpacked -Wformat-security \
0009         -Wmissing-format-attribute -Woverloaded-virtual
0010 
0011   # -Wconversion gives too many warnings from Qt-4.4.3 with gcc-4.3.2 (was fine with gcc-4.2.4), so removing it
0012 
0013   # Qt-4.2 has tools/designer/src/lib/uilib/ui4_p.h:263: error: comma at end of enumerator list
0014   !contains($$list($$[QT_VERSION]), 4.2.*) {
0015         NORMAL_CFLAGS += -pedantic
0016   }
0017 
0018   # Increase the debugging level from Qt's default
0019   CONFIG(debug, debug|release) {
0020     NORMAL_CXXFLAGS += -g3
0021   }
0022 
0023   USABLE_CXXFLAGS = -Wold-style-cast
0024   HARD_CXXFLAGS = -Weffc++ -Wshadow
0025   PITA_CXXFLAGS = -Wunreachable-code
0026 
0027   QMAKE_CFLAGS   += $$NORMAL_CFLAGS
0028   QMAKE_CXXFLAGS += $$NORMAL_CFLAGS $$NORMAL_CXXFLAGS
0029 
0030   # Mirko: removed that during development in trunk, should be
0031   # reenabled once going towards a release: -Werror 
0032   QMAKE_CFLAGS_WARN_ON   += $$NORMAL_CFLAGS
0033   # Mirko: removed that during development in trunk, should be
0034   # reenabled once going towards a release: -Werror 
0035   QMAKE_CXXFLAGS_WARN_ON += $$NORMAL_CFLAGS $$NORMAL_CXXFLAGS
0036 
0037   #QMAKE_CXXFLAGS_WARN_ON += $$USABLE_CXXFLAGS
0038   #QMAKE_CXXFLAGS_WARN_ON += $$HARD_CXXFLAGS # headers must compile with this, code doesn't need to; needs patched Qt
0039   #QMAKE_CXXFLAGS_WARN_ON += $$PITA_CXXFLAGS # header would be nice, but it's probably pointless, due to noise from Qt and libstdc++
0040 
0041 }