mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-09 20:43:18 +01:00
Add G_GNUC_PRINTF on all functions with format strings
This allows compilation with clang without errors, even when -Wformat-nonliteral is active (as long as there are no real cases of non literal formatting). https://bugzilla.gnome.org/show_bug.cgi?id=691608
This commit is contained in:
committed by
Colin Walters
parent
120834db5b
commit
c219181cb2
@@ -403,6 +403,7 @@ set_error_literal (GMarkupParseContext *context,
|
||||
g_propagate_error (error, tmp_error);
|
||||
}
|
||||
|
||||
G_GNUC_PRINTF(4, 5)
|
||||
static void
|
||||
set_error (GMarkupParseContext *context,
|
||||
GError **error,
|
||||
@@ -564,6 +565,7 @@ utf8_str (const gchar *utf8,
|
||||
return buf;
|
||||
}
|
||||
|
||||
G_GNUC_PRINTF(5, 6)
|
||||
static void
|
||||
set_unescape_error (GMarkupParseContext *context,
|
||||
GError **error,
|
||||
|
||||
Reference in New Issue
Block a user