]> git.tdb.fi Git - builder.git/commitdiff
Silence the cast-function-type warning on GCC 8
authorMikko Rasa <tdb@tdb.fi>
Thu, 30 Aug 2018 10:07:40 +0000 (13:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 30 Aug 2018 10:07:40 +0000 (13:07 +0300)
It causes problems when function type need to be explicitly converted,
like in sigc++.

source/gnucompiler.cpp

index b186bb367cdb84350988f143142085c4b690a3ca..b3f56175c034790d427cec316b12f3a7b2680773 100644 (file)
@@ -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)
                {