Browse Source

Use attribute noreturn on both GCC and Clang

Both GCC and Clang define __GNUC__ and both also understand
attribute noreturn.
Turo Lamminen 10 years ago
parent
commit
db6d8a4dc5
1 changed files with 2 additions and 2 deletions
  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__)