summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2022-03-18 10:25:51 +0100
committerMarc-Antoine Perennou <Marc-Antoine@Perennou.com>2022-03-18 10:41:54 +0100
commit08dc2bb54658e003724f570224541a674645d87f (patch)
tree21f9938944eeb1a43253e226e6f824c3f46d479c
parenta362d3c0ee79097ce2e3fca4ad003f1e96dad472 (diff)
downloadbubblewrap-08dc2bb54658e003724f570224541a674645d87f.tar.gz
tests: properly tag ok as being printf-like
Avoids breaking warning with clang Fixes #478 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-rw-r--r--tests/test-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test-utils.c b/tests/test-utils.c
index c9b859d..41874a1 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -25,6 +25,8 @@
/* A small implementation of TAP */
static unsigned int test_number = 0;
+
+__attribute__((format(printf, 1, 2)))
static void
ok (const char *format, ...)
{