Tests: Fix -Wformat-nonliteral causing build failure with clang

This commit is contained in:
Xavier Claessens 2018-09-20 09:36:20 -04:00
parent 3ae1244ba1
commit abac67c050

View File

@ -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
{