Merge branch 'mcatanzaro/coverity-noreturn' into 'master'

Implement G_ANALYZER_NORETURN for Coverity

See merge request GNOME/glib!2039
This commit is contained in:
Philip Withnall 2021-04-08 17:23:27 +00:00
commit 346e4867ea

View File

@ -760,6 +760,9 @@
#if g_macro__has_feature(attribute_analyzer_noreturn) && defined(__clang_analyzer__)
#define G_ANALYZER_ANALYZING 1
#define G_ANALYZER_NORETURN __attribute__((analyzer_noreturn))
#elif defined(__COVERITY__)
#define G_ANALYZER_ANALYZING 1
#define G_ANALYZER_NORETURN __attribute__((noreturn))
#else
#define G_ANALYZER_ANALYZING 0
#define G_ANALYZER_NORETURN