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/headless/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/headless') diff --git a/backend/headless/output.c b/backend/headless/output.c index d200aa58..b3b41d46 100644 --- a/backend/headless/output.c +++ b/backend/headless/output.c @@ -128,7 +128,7 @@ struct wlr_output *wlr_headless_add_output(struct wlr_backend *wlr_backend, output_set_custom_mode(wlr_output, width, height, 0); strncpy(wlr_output->make, "headless", sizeof(wlr_output->make)); strncpy(wlr_output->model, "headless", sizeof(wlr_output->model)); - snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%ld", + snprintf(wlr_output->name, sizeof(wlr_output->name), "HEADLESS-%zd", ++backend->last_output_num); if (!wlr_egl_make_current(&output->backend->egl, output->egl_surface, -- cgit v1.2.3