From e7ce61ee5684a5152d326af8e756cbdb987ff5f8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 30 Aug 2018 13:07:40 +0300 Subject: [PATCH] Silence the cast-function-type warning on GCC 8 It causes problems when function type need to be explicitly converted, like in sigc++. --- source/gnucompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.43.0