mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:30:41 +08:00
Workaround GCC 8.1 internal compiler error
This commit is contained in:
committed by
Mat Sutcliffe
parent
82f7771882
commit
f7cd840d42
@@ -443,7 +443,9 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
constexpr bool required = false; //! \fixme add RequiredForJson flag in metaclass system
|
constexpr bool required = false; //! \fixme add RequiredForJson flag in metaclass system
|
||||||
// cppcheck-suppress knownConditionTrueFalse
|
// cppcheck-suppress knownConditionTrueFalse
|
||||||
if (required) { throw CJsonException(QStringLiteral("Missing required member '%1'").arg(member.latin1Name())); }
|
// QLatin1String used instead of QStringLiteral below since the latter causes an internal compiler bug
|
||||||
|
// in GCC 8 and higher
|
||||||
|
if (required) { throw CJsonException(QLatin1String("Missing required member '%1'").arg(member.latin1Name())); }
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user