From: Mikko Rasa Date: Thu, 30 Aug 2018 10:07:40 +0000 (+0300) Subject: Silence the cast-function-type warning on GCC 8 X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=e7ce61ee5684a5152d326af8e756cbdb987ff5f8 Silence the cast-function-type warning on GCC 8 It causes problems when function type need to be explicitly converted, like in sigc++. --- diff --git a/source/gnucompiler.cpp b/source/gnucompiler.cpp index b186bb3..b3f5617 100644 --- a/source/gnucompiler.cpp +++ b/source/gnucompiler.cpp @@ -221,6 +221,8 @@ Task *GnuCompiler::run(const Target &target) const { argv.push_back("-Wextra"); argv.push_back("-Wundef"); + if(version>=0x80000) + argv.push_back("-Wno-cast-function-type"); } if(binfo.warning_level>=3) {