diff options
author | rbuj <[email protected]> | 2020-02-03 16:29:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-02-28 22:01:14 +0100 |
commit | 159addcc16f7ec39dd20c6ee6c756ed224b4f461 (patch) | |
tree | 0df5df268ce5824bdeb6229123837cd00bfb037c | |
parent | 4499ed746d610b2e57a7a3771644a0a67d43b0be (diff) | |
download | marco-159addcc16f7ec39dd20c6ee6c756ed224b4f461.tar.bz2 marco-159addcc16f7ec39dd20c6ee6c756ed224b4f461.tar.xz |
util: meta_bug raises SIGABRT so it shouldn't return
-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, |