From 5c77e2898729b9bec42337fb8d1b00e772df40f0 Mon Sep 17 00:00:00 2001
From: scott snyder <sss@karma>
Date: Fri, 19 Jun 2020 15:16:19 +0200
Subject: [PATCH] SGTools: Fix cppcheck warning.

Annotate throw function as noreturn.
---
 Control/SGTools/SGTools/exceptions.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Control/SGTools/SGTools/exceptions.h b/Control/SGTools/SGTools/exceptions.h
index 2de48a5cab1..e949c2383e3 100644
--- a/Control/SGTools/SGTools/exceptions.h
+++ b/Control/SGTools/SGTools/exceptions.h
@@ -1,7 +1,7 @@
 // This file's extension implies that it's C, but it's really -*- C++ -*-.
 
 /*
-  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 */
 
 // $Id$
@@ -64,6 +64,7 @@ private:
  * @param id CLID of the DataProxy.
  * @param tid Type to which we're trying to convert the object.
  */
+[[noreturn]]
 void throwExcBadDataProxyCast (CLID id, const std::type_info& tid);
 
 
-- 
GitLab