Use attribute noreturn on both GCC and Clang

Both GCC and Clang define __GNUC__ and both also understand
attribute noreturn.
pull/464/head
Turo Lamminen 2015-02-13 14:21:09 +02:00
parent dfd171be6d
commit db6d8a4dc5
1 changed files with 2 additions and 2 deletions

View File

@ -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__)