Suppress warnings in 3rd party codec builds

This patch disables all warnings in celt and opus builds.
They were very noise and drowned out the warnings in our
code to the point where no one even bothered looking at them.
As we don't inspect those warnings and won't attempt to fix
them anytime soon they are not useful to us.

Added third-party-warnings qmake CONFIG option to optionally
re-enable warnings for those (and in the future other) 3rd
part builds.
This commit is contained in:
Stefan Hacker 2015-06-05 16:24:33 +02:00
parent 46cb8a371b
commit fac930b327
3 changed files with 21 additions and 4 deletions

View File

@ -13,8 +13,6 @@ VERSION=$$replace(VERSION,celt-,)
TEMPLATE = lib
CONFIG -= qt
CONFIG += debug_and_release
CONFIG -= warn_on
CONFIG += warn_off
CONFIG += no_include_pwd
VPATH = ../$$SOURCEDIR/libcelt
TARGET = celt0
@ -27,6 +25,13 @@ CONFIG(static) {
CONFIG += shared
}
!CONFIG(third-party-warnings) {
# We ignore warnings in third party builds. We won't actually look
# at them and they clutter out our warnings.
CONFIG -= warn_on
CONFIG += warn_off
}
QMAKE_CFLAGS -= -fPIE -pie
win32 {

View File

@ -32,6 +32,13 @@ CONFIG(sbcelt) {
}
}
!CONFIG(third-party-warnings) {
# We ignore warnings in third party builds. We won't actually look
# at them and they clutter out our warnings.
CONFIG -= warn_on
CONFIG += warn_off
}
QMAKE_CFLAGS -= -fPIE -pie
win32 {

View File

@ -15,13 +15,18 @@ SOURCEDIR=$$replace(BUILDDIR,-build,-src)
TEMPLATE = lib
CONFIG -= qt
CONFIG += debug_and_release
#CONFIG -= warn_on
#CONFIG += warn_off
CONFIG += no_include_pwd
VPATH = ../$$SOURCEDIR
TARGET = opus
DEFINES += HAVE_CONFIG_H
!CONFIG(third-party-warnings) {
# We ignore warnings in third party builds. We won't actually look
# at them and they clutter out our warnings.
CONFIG -= warn_on
CONFIG += warn_off
}
QMAKE_CFLAGS -= -fPIE -pie
win32 {