mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Tests: Fix -Wformat-nonliteral causing build failure with clang
This commit is contained in:
parent
3ae1244ba1
commit
abac67c050
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
static gint exit_status = 0;
|
static gint exit_status = 0;
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||||
static void
|
static void
|
||||||
croak (char *format, ...)
|
croak (char *format, ...)
|
||||||
{
|
{
|
||||||
@ -32,6 +34,7 @@ fail (char *format, ...)
|
|||||||
|
|
||||||
exit_status |= 1;
|
exit_status |= 1;
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user