From f3869caa41d452ef607bcba168bf7bdeb8ac9a45 Mon Sep 17 00:00:00 2001 From: axis Date: Mon, 6 Jul 2009 09:40:25 +0200 Subject: Started suppressing some rather pointless warnings from RVCT. --- mkspecs/common/symbian/armcc_warnings.prf | 10 ++++++++++ src/plugins/qpluginbase.pri | 1 + src/qbase.pri | 1 + 3 files changed, 12 insertions(+) create mode 100644 mkspecs/common/symbian/armcc_warnings.prf diff --git a/mkspecs/common/symbian/armcc_warnings.prf b/mkspecs/common/symbian/armcc_warnings.prf new file mode 100644 index 0000000..95b3bc0 --- /dev/null +++ b/mkspecs/common/symbian/armcc_warnings.prf @@ -0,0 +1,10 @@ +# 111: Statement is unreachable +# 185: Dynamic initialization in unreachable code +# 191: Type qualifier is meaningless on cast type +# 368: class "" defines no constructor to initialize the following: +# (Disabled because there are other ways of assigning besides constructors) +# 1293: Assignment in condition +# 1294: pre-ANSI C style functions declarations (used a lot in 3rd party code) +# 2874: may be used before being set (this one sounds useful, but +# it's output also for class instances, making it useless in practice) +QMAKE_CFLAGS.ARMCC += --diag_suppress 111,185,191,368,1293,1294,2874 diff --git a/src/plugins/qpluginbase.pri b/src/plugins/qpluginbase.pri index 6d3e266..b14f839 100644 --- a/src/plugins/qpluginbase.pri +++ b/src/plugins/qpluginbase.pri @@ -17,4 +17,5 @@ wince*:LIBS += $$QMAKE_LIBS_GUI symbian: { TARGET.EPOCALLOWDLLDATA=1 TARGET.CAPABILITY = All -Tcb + load(armcc_warnings) } diff --git a/src/qbase.pri b/src/qbase.pri index f2b35a8..ce1f484 100644 --- a/src/qbase.pri +++ b/src/qbase.pri @@ -99,6 +99,7 @@ symbian { DEFINES+=QT_MAKEDLL TARGET.CAPABILITY = All -Tcb } + load(armcc_warnings) } win32-borland:INCLUDEPATH += kernel -- cgit v0.12