mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02: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
@@ -87,12 +87,12 @@ void g_dbus_error_set_dbus_error (GError **error,
|
||||
const gchar *dbus_error_name,
|
||||
const gchar *dbus_error_message,
|
||||
const gchar *format,
|
||||
...);
|
||||
...) G_GNUC_PRINTF(4, 5);
|
||||
void g_dbus_error_set_dbus_error_valist (GError **error,
|
||||
const gchar *dbus_error_name,
|
||||
const gchar *dbus_error_message,
|
||||
const gchar *format,
|
||||
va_list var_args);
|
||||
va_list var_args) G_GNUC_PRINTF(4, 0);
|
||||
gchar *g_dbus_error_encode_gerror (const GError *error);
|
||||
|
||||
G_END_DECLS
|
||||
|
Reference in New Issue
Block a user