mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-18 14:48:53 +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
@@ -60,7 +60,7 @@ GError* g_error_new_literal (GQuark domain,
|
||||
GError* g_error_new_valist (GQuark domain,
|
||||
gint code,
|
||||
const gchar *format,
|
||||
va_list args);
|
||||
va_list args) G_GNUC_PRINTF(3, 0);
|
||||
|
||||
void g_error_free (GError *error);
|
||||
GError* g_error_copy (const GError *error);
|
||||
|
Reference in New Issue
Block a user