diff options
author | rbuj <[email protected]> | 2020-02-03 16:29:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-02-28 21:58:41 +0100 |
commit | ff9ed6d7239ec6b0e5d0eca8cbd5d63abec921e1 (patch) | |
tree | 69e41fc10ca4da3f5b7c8ef2f53c157eab9882b9 /src | |
parent | 5523df4a4ff2a143a64e7eb83a17368373123842 (diff) | |
download | marco-ff9ed6d7239ec6b0e5d0eca8cbd5d63abec921e1.tar.bz2 marco-ff9ed6d7239ec6b0e5d0eca8cbd5d63abec921e1.tar.xz |
util: meta_bug raises SIGABRT so it shouldn't return
Diffstat (limited to 'src')
-rw-r--r-- | src/core/util.c | 2 | ||||
-rw-r--r-- | src/include/util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/util.c b/src/core/util.c index 0602b28c..6ebaf3c9 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -363,7 +363,7 @@ meta_bug (const char *format, ...) gchar *str; FILE *out; - g_return_if_fail (format != NULL); + g_assert (format != NULL); va_start (args, format); str = g_strdup_vprintf (format, args); diff --git a/src/include/util.h b/src/include/util.h index 107b9365..fe94bbc6 100644 --- a/src/include/util.h +++ b/src/include/util.h @@ -43,7 +43,7 @@ void meta_verbose_real (const char *format, ...) G_GNUC_PRINTF (1, 2); void meta_bug (const char *format, - ...) G_GNUC_PRINTF (1, 2); + ...) G_GNUC_PRINTF (1, 2) G_GNUC_NORETURN G_ANALYZER_NORETURN; void meta_warning (const char *format, ...) G_GNUC_PRINTF (1, 2); void meta_fatal (const char *format, |