mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 20:35:49 +01:00
gmessages: fix clang annotations to work with older versions
https://bugzilla.gnome.org/show_bug.cgi?id=708793
This commit is contained in:
parent
4a953af8a5
commit
b5ce635a42
@ -188,9 +188,12 @@ void g_assert_warning (const char *log_domain,
|
|||||||
G_LOG_LEVEL_DEBUG, \
|
G_LOG_LEVEL_DEBUG, \
|
||||||
format)
|
format)
|
||||||
#else /* no varargs macros */
|
#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
|
static void
|
||||||
g_error (const gchar *format,
|
g_error (const gchar *format,
|
||||||
...) G_ANALYZER_NORETURN
|
...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start (args, format);
|
va_start (args, format);
|
||||||
@ -210,7 +213,7 @@ g_message (const gchar *format,
|
|||||||
}
|
}
|
||||||
static void
|
static void
|
||||||
g_critical (const gchar *format,
|
g_critical (const gchar *format,
|
||||||
...) G_ANALYZER_NORETURN
|
...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start (args, format);
|
va_start (args, format);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user