From 5ba2d8500a27f2fdf67e7015824de06b31d99536 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 21 Jun 2019 17:07:10 +0200 Subject: [PATCH] suppress macro processor compilation warnings with gcc --- src/macro/Expressions.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/macro/Expressions.cc b/src/macro/Expressions.cc index e9626611..dd9ce417 100644 --- a/src/macro/Expressions.cc +++ b/src/macro/Expressions.cc @@ -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