summaryrefslogtreecommitdiff
path: root/sys-apps/bubblewrap/files/bubblewrap-0.6.1-clang-printf.patch
blob: 7c7e0ff29988d49d30d810d02c2a4b88b32ee34f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
https://github.com/containers/bubblewrap/commit/08dc2bb54658e003724f570224541a674645d87f.patch
https://bugs.gentoo.org/834912

From 08dc2bb54658e003724f570224541a674645d87f Mon Sep 17 00:00:00 2001
From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Date: Fri, 18 Mar 2022 10:25:51 +0100
Subject: [PATCH] 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>
---
 tests/test-utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test-utils.c b/tests/test-utils.c
index c9b859d2..41874a15 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, ...)
 {