diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2021-04-08 17:23:27 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2021-04-08 17:23:27 +0000 |
commit | 346e4867ea7779d499dd620299b4968d894e3b64 (patch) | |
tree | c9c8f092052a7f6e006c940e01b4ff09e57c4bf6 | |
parent | 80c2981b621d2a53b9992e66b76c6ba2fe611b96 (diff) | |
parent | f97ff20adf4eb7b952dd83e2c13046fe9e282f50 (diff) | |
download | glib-346e4867ea7779d499dd620299b4968d894e3b64.tar.gz |
Merge branch 'mcatanzaro/coverity-noreturn' into 'master'
Implement G_ANALYZER_NORETURN for Coverity
See merge request GNOME/glib!2039
-rw-r--r-- | glib/gmacros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gmacros.h b/glib/gmacros.h index 8071f91f2..5bba1d77e 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -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 |