From 69cd5cc73f466181420711fb907979de58687a4c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 6 Jan 2017 04:49:43 +0200 Subject: [PATCH] Don't treat using deprecated declarations as errors They can be impossible to avoid sometimes if a non-deprecated replacement is not available. --- source/gnucompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.45.2