diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2020-07-04 12:11:25 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2020-07-04 14:04:19 -0700 |
commit | b93f76f9633e766eadd6022b5794c52deb7d81b3 (patch) | |
tree | 2026df6e1b76d68d55413f8f38e742af74873166 /test/gjs-test-coverage.cpp | |
parent | 40f6cad423207d01ba01161f2893f681e68bfc8e (diff) | |
download | gjs-b93f76f9633e766eadd6022b5794c52deb7d81b3.tar.gz |
test: Mark that g_assertion_message() does not normally return
g_assertion_message() can return if nonfatal assertions are enabled, but
for the purposes of static analysis, we want to consider it non-
returning.
See: GNOME/glib!1553
Diffstat (limited to 'test/gjs-test-coverage.cpp')
-rw-r--r-- | test/gjs-test-coverage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/gjs-test-coverage.cpp b/test/gjs-test-coverage.cpp index 6496f1c2..38780c1a 100644 --- a/test/gjs-test-coverage.cpp +++ b/test/gjs-test-coverage.cpp @@ -36,6 +36,12 @@ #include "gjs/coverage.h" #include "gjs/jsapi-util.h" +// COMPAT: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1553 +#ifdef __clang_analyzer__ +void g_assertion_message(const char*, const char*, int, const char*, + const char*) __attribute__((analyzer_noreturn)); +#endif + typedef struct _GjsCoverageFixture { GjsContext *context; GjsCoverage *coverage; |