clients/stacking: Silence a compiler warning

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.

v3:

 - Explicitly include wayland-util.h

Signed-off-by: Armin Krezović <krezovic.armin@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Armin Krezović 2016-09-29 00:18:10 +02:00 committed by Quentin Glidic
parent 72f68c53ea
commit eaf5841f0c
No known key found for this signature in database
GPG Key ID: AC203F96E2C34BB7

View File

@ -32,6 +32,7 @@
#include <linux/input.h>
#include <cairo.h>
#include <wayland-util.h>
#include "shared/helpers.h"
#include "window.h"
@ -184,7 +185,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,