From 8978ec39ed65725b73fbfc5ee824cd50fa51e5cc Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Thu, 9 Jun 2016 17:23:55 +0300 Subject: [PATCH] test/interactive-wayland: fix control reaches end of non-void function AFAICS there is nothing that can fail directly in this function, so change it to void. Signed-off-by: Ran Benita --- test/interactive-wayland.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/interactive-wayland.c b/test/interactive-wayland.c index 34aa206..6769b12 100644 --- a/test/interactive-wayland.c +++ b/test/interactive-wayland.c @@ -282,7 +282,7 @@ static const struct xdg_surface_listener surface_listener = { surface_close }; -static int surface_create(struct interactive_dpy *inter) +static void surface_create(struct interactive_dpy *inter) { int width = 200, height = 200; @@ -676,11 +676,7 @@ main(int argc, char *argv[]) goto err_conn; } - ret = surface_create(&inter); - if (ret) { - fprintf(stderr, "Couldn't create a capture window\n"); - goto err_conn; - } + surface_create(&inter); test_disable_stdin_echo(); do { -- 2.7.4