mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 13:53:06 +02:00
Merge branch 'printf' into 'master'
Tests: Mark printf wrappers with G_GNUC_PRINTF See merge request GNOME/glib!363
This commit is contained in:
commit
686d60d77b
@ -9,8 +9,7 @@
|
|||||||
|
|
||||||
static gint exit_status = 0;
|
static gint exit_status = 0;
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
G_GNUC_PRINTF (1, 2)
|
||||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
|
||||||
static void
|
static void
|
||||||
croak (char *format, ...)
|
croak (char *format, ...)
|
||||||
{
|
{
|
||||||
@ -23,6 +22,7 @@ croak (char *format, ...)
|
|||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G_GNUC_PRINTF (1, 2)
|
||||||
static void
|
static void
|
||||||
fail (char *format, ...)
|
fail (char *format, ...)
|
||||||
{
|
{
|
||||||
@ -34,7 +34,6 @@ fail (char *format, ...)
|
|||||||
|
|
||||||
exit_status |= 1;
|
exit_status |= 1;
|
||||||
}
|
}
|
||||||
#pragma GCC diagnostic pop
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user