Use attribute noreturn on both GCC and Clang
Both GCC and Clang define __GNUC__ and both also understand attribute noreturn.pull/464/head
parent
dfd171be6d
commit
db6d8a4dc5
|
@ -162,8 +162,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
# define AI_FORCE_INLINE inline
|
# define AI_FORCE_INLINE inline
|
||||||
#endif // (defined _MSC_VER)
|
#endif // (defined _MSC_VER)
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __GNUC__
|
||||||
# define AI_WONT_RETURN_SUFFIX __attribute__((analyzer_noreturn))
|
# define AI_WONT_RETURN_SUFFIX __attribute__((noreturn))
|
||||||
#else
|
#else
|
||||||
# define AI_WONT_RETURN_SUFFIX
|
# define AI_WONT_RETURN_SUFFIX
|
||||||
#endif // (defined __clang__)
|
#endif // (defined __clang__)
|
||||||
|
|
Loading…
Reference in New Issue