From b6d0de177adaeeb0f5990613b52d50520bc15301 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 8 Apr 2019 18:49:25 +0000 Subject: backend: unbreak on 32-bit architectures backend/headless/output.c:132:3: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++backend->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend/noop/output.c:72:3: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++backend->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend/wayland/output.c:294:3: error: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++backend->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~~~~~ backend/x11/output.c:150:3: error: format specifies type 'long' but the argument has type 'size_t' (aka 'unsigned int') [-Werror,-Wformat] ++x11->last_output_num); ^~~~~~~~~~~~~~~~~~~~~~ --- backend/x11/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/x11/output.c') diff --git a/backend/x11/output.c b/backend/x11/output.c index ce90ea5e..a9bd5c0a 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -146,7 +146,7 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) { output_set_refresh(&output->wlr_output, 0); - snprintf(wlr_output->name, sizeof(wlr_output->name), "X11-%ld", + snprintf(wlr_output->name, sizeof(wlr_output->name), "X11-%zd", ++x11->last_output_num); parse_xcb_setup(wlr_output, x11->xcb); -- cgit v1.2.3