diff options
author | rbuj <[email protected]> | 2020-02-03 16:29:26 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-09 13:33:56 +0100 |
commit | 556c4ffd0051da4191bff37be9dc94d94f365af9 (patch) | |
tree | 88aa7c822c2bc1f4a512c55b581162f8b7ccb5d0 | |
parent | 33554936aa2cfcefd7fa675d918b43a779203297 (diff) | |
download | marco-556c4ffd0051da4191bff37be9dc94d94f365af9.tar.bz2 marco-556c4ffd0051da4191bff37be9dc94d94f365af9.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 a30707a7..c638570e 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -372,7 +372,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 545357f8..d32e1895 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, |