From f07a4e16a60e1d0231dda5d3883550761bd70a47 Mon Sep 17 00:00:00 2001 From: Frank Henigman Date: Wed, 10 Apr 2019 09:23:55 -0400 Subject: [PATCH] Fix guard around [[noreturn]]. Clang defines _MSC_VER and supports [[noreturn]]. --- spirv_cross_error_handling.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_cross_error_handling.hpp b/spirv_cross_error_handling.hpp index 92f7c0ec..e821c043 100644 --- a/spirv_cross_error_handling.hpp +++ b/spirv_cross_error_handling.hpp @@ -31,7 +31,7 @@ namespace SPIRV_CROSS_NAMESPACE { #ifdef SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS -#ifndef _MSC_VER +#if !defined(_MSC_VER) || defined(__clang__) [[noreturn]] #endif inline void