mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +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;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
static void
|
||||
croak (char *format, ...)
|
||||
{
|
||||
@ -32,6 +34,7 @@ fail (char *format, ...)
|
||||
|
||||
exit_status |= 1;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user