summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2021-04-08 17:23:27 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2021-04-08 17:23:27 +0000
commit346e4867ea7779d499dd620299b4968d894e3b64 (patch)
treec9c8f092052a7f6e006c940e01b4ff09e57c4bf6
parent80c2981b621d2a53b9992e66b76c6ba2fe611b96 (diff)
parentf97ff20adf4eb7b952dd83e2c13046fe9e282f50 (diff)
downloadglib-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.h3
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