]> git.tdb.fi Git - builder.git/commitdiff
Don't treat using deprecated declarations as errors
authorMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 02:49:43 +0000 (04:49 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 6 Jan 2017 02:49:43 +0000 (04:49 +0200)
They can be impossible to avoid sometimes if a non-deprecated replacement
is not available.

source/gnucompiler.cpp

index 2f6393ec1d718e97134d3a4a53bc002b0a9c3fc1..884776ab21927540885c03db4b135601889ca0a3 100644 (file)
@@ -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;