浏览代码

Use attribute noreturn on both GCC and Clang

Both GCC and Clang define __GNUC__ and both also understand
attribute noreturn.
Turo Lamminen 10 年之前
父节点
当前提交
db6d8a4dc5
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/assimp/defs.h

+ 2 - 2
include/assimp/defs.h

@@ -162,8 +162,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #	define AI_FORCE_INLINE inline
 #endif // (defined _MSC_VER)
 
-#ifdef __clang__
-#	define AI_WONT_RETURN_SUFFIX  __attribute__((analyzer_noreturn))
+#ifdef __GNUC__
+#	define AI_WONT_RETURN_SUFFIX  __attribute__((noreturn))
 #else
 #	define AI_WONT_RETURN_SUFFIX
 #endif // (defined __clang__)