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

View File

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