From b5ce635a423c8fbf226d46b3e7cdd106561fecbb Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 28 Sep 2013 12:31:52 -0400 Subject: [PATCH] gmessages: fix clang annotations to work with older versions https://bugzilla.gnome.org/show_bug.cgi?id=708793 --- glib/gmessages.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/glib/gmessages.h b/glib/gmessages.h index e979266ea..77958ada3 100644 --- a/glib/gmessages.h +++ b/glib/gmessages.h @@ -188,9 +188,12 @@ void g_assert_warning (const char *log_domain, G_LOG_LEVEL_DEBUG, \ format) #else /* no varargs macros */ +static void g_error (const gchar *format, ...) G_ANALYZER_NORETURN; +static void g_critical (const gchar *format, ...) G_ANALYZER_NORETURN; + static void g_error (const gchar *format, - ...) G_ANALYZER_NORETURN + ...) { va_list args; va_start (args, format); @@ -210,7 +213,7 @@ g_message (const gchar *format, } static void g_critical (const gchar *format, - ...) G_ANALYZER_NORETURN + ...) { va_list args; va_start (args, format); -- 2.34.1