[PATCH weston v2] clients/stacking: Silence a compiler warning
Armin Krezović
krezovic.armin at gmail.com
Tue Sep 27 10:35:55 UTC 2016
This patch fixes a compiler warning when building with
clang, since it doesn't support gnu_printf attribute.
v2:
- Switch to WL_PRINTF per suggestion from Eric Engestrom.
Signed-off-by: Armin Krezović <krezovic.armin at gmail.com>
---
clients/stacking.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clients/stacking.c b/clients/stacking.c
index 4285a17..7c711e4 100644
--- a/clients/stacking.c
+++ b/clients/stacking.c
@@ -184,7 +184,7 @@ fullscreen_handler(struct window *window, void *data)
static void
draw_string(cairo_t *cr,
- const char *fmt, ...) __attribute__((format (gnu_printf, 2, 3)));
+ const char *fmt, ...) WL_PRINTF(2,3);
static void
draw_string(cairo_t *cr,
--
2.10.0
More information about the wayland-devel
mailing list