From a9a6b48db9506428eb9e48ac6f4bbd35d639b20b Mon Sep 17 00:00:00 2001
From: Olivier BICHLER <olivier.bichler@cea.fr>
Date: Mon, 2 Oct 2023 14:35:51 +0200
Subject: [PATCH] Fixed GCC complains about noreturn

---
 include/aidge/utils/StaticAttributes.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/aidge/utils/StaticAttributes.hpp b/include/aidge/utils/StaticAttributes.hpp
index edeed49cb..5a00d4ad9 100644
--- a/include/aidge/utils/StaticAttributes.hpp
+++ b/include/aidge/utils/StaticAttributes.hpp
@@ -127,9 +127,10 @@ public:
     }
 
     template <std::size_t SIZE = std::tuple_size<std::tuple<T...>>::value>
-    [[noreturn]] constexpr typename std::enable_if<(SIZE == 0), const std::type_info&>::type getAttrType(std::size_t /*i*/) const {
+    /*[[noreturn]]*/ constexpr typename std::enable_if<(SIZE == 0), const std::type_info&>::type getAttrType(std::size_t /*i*/) const {
         assert(false && "attribute not found");
         return typeid(void);  // avoid MSVC error C4716: "must return a value", despite [[noreturn]] attribute
+                              // [[noreturn]] attribute is removed otherwise GCC complains because there is a return.
     }
 
     constexpr const std::tuple<T...>& getStaticAttributes() const {
-- 
GitLab