Skip to content

Commit 08dc2bb

Browse files
committed
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>
1 parent a362d3c commit 08dc2bb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test-utils.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
/* A small implementation of TAP */
2727
static unsigned int test_number = 0;
28+
29+
__attribute__((format(printf, 1, 2)))
2830
static void
2931
ok (const char *format, ...)
3032
{

0 commit comments

Comments
 (0)