mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 03:34:05 +02:00
Merge branch 'mcatanzaro/coverity-noreturn' into 'master'
Implement G_ANALYZER_NORETURN for Coverity See merge request GNOME/glib!2039
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user