suppress macro processor compilation warnings with gcc

issue#70
Houtan Bastani 2019-06-21 17:07:10 +02:00
parent 17e040f3f6
commit 5ba2d8500a
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
1 changed files with 8 additions and 0 deletions

View File

@ -757,6 +757,8 @@ UnaryOp::eval()
{
throw StackTrace("unary operation", e.what(), location);
}
// Suppress GCC warning
exit(EXIT_FAILURE);
}
BaseTypePtr
@ -844,6 +846,8 @@ TrinaryOp::eval()
{
throw StackTrace("trinary operation", e.what(), location);
}
// Suppress GCC warning
exit(EXIT_FAILURE);
}
BaseTypePtr
@ -1000,6 +1004,8 @@ UnaryOp::to_string() const noexcept
case codes::UnaryOp::normcdf:
return "normcdf(" + retval + ")";
}
// Suppress GCC warning
exit(EXIT_FAILURE);
}
string
@ -1075,6 +1081,8 @@ TrinaryOp::to_string() const noexcept
case codes::TrinaryOp::normcdf:
return "normcdf(" + arg1->to_string() + ", " + arg2->to_string() + ", " + arg3->to_string() + ")";
}
// Suppress GCC warning
exit(EXIT_FAILURE);
}
string