From: Mikko Rasa Date: Fri, 6 Jan 2017 02:49:43 +0000 (+0200) Subject: Don't treat using deprecated declarations as errors X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=69cd5cc73f466181420711fb907979de58687a4c;p=builder.git Don't treat using deprecated declarations as errors They can be impossible to avoid sometimes if a non-deprecated replacement is not available. --- diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index 2f6393e..884776a 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -135,7 +135,10 @@ Task *GnuCompiler::run(const Target &target) const argv.push_back("-Winline"); } if(binfo.fatal_warnings) + { argv.push_back("-Werror"); + argv.push_back("-Wno-error=deprecated-declarations"); + } } const FS::Path &sysroot = binfo.sysroot;