From ba8e7ad4d636de81a1fcb34594b0985cfd84c91f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 6 Apr 2018 16:57:46 -0600 Subject: [PATCH] Mark a couple of functions as '[[noreturn]]'. --- include/deal.II/base/exceptions.h | 1 + source/base/exceptions.cc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/deal.II/base/exceptions.h b/include/deal.II/base/exceptions.h index 9e8847304b..e1371a9fba 100644 --- a/include/deal.II/base/exceptions.h +++ b/include/deal.II/base/exceptions.h @@ -241,6 +241,7 @@ namespace deal_II_exceptions * error message provided by @p exc and calling std::abort(), or * throws @p exc instead. */ + [[noreturn]] void abort (const ExceptionBase &exc); /** diff --git a/source/base/exceptions.cc b/source/base/exceptions.cc index b2b113ed3e..73ac867491 100644 --- a/source/base/exceptions.cc +++ b/source/base/exceptions.cc @@ -392,6 +392,7 @@ namespace StandardExceptions namespace { + [[noreturn]] void internal_abort (const ExceptionBase &exc) noexcept { // first print the error @@ -464,6 +465,7 @@ namespace deal_II_exceptions + [[noreturn]] void abort (const ExceptionBase &exc) { if (dealii::deal_II_exceptions::abort_on_exception) -- 2.39.5