mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +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
@@ -78,6 +78,7 @@ typedef struct
|
||||
gint start, end;
|
||||
} SourceRef;
|
||||
|
||||
G_GNUC_PRINTF(5, 0)
|
||||
static void
|
||||
parser_set_error_va (GError **error,
|
||||
SourceRef *location,
|
||||
@@ -105,6 +106,7 @@ parser_set_error_va (GError **error,
|
||||
g_string_free (msg, TRUE);
|
||||
}
|
||||
|
||||
G_GNUC_PRINTF(5, 6)
|
||||
static void
|
||||
parser_set_error (GError **error,
|
||||
SourceRef *location,
|
||||
@@ -130,6 +132,7 @@ typedef struct
|
||||
} TokenStream;
|
||||
|
||||
|
||||
G_GNUC_PRINTF(5, 6)
|
||||
static void
|
||||
token_stream_set_error (TokenStream *stream,
|
||||
GError **error,
|
||||
@@ -525,6 +528,7 @@ ast_free (AST *ast)
|
||||
ast->class->free (ast);
|
||||
}
|
||||
|
||||
G_GNUC_PRINTF(5, 6)
|
||||
static void
|
||||
ast_set_error (AST *ast,
|
||||
GError **error,
|
||||
|
Reference in New Issue
Block a user