diff options
author | Ran Benita <ran234@gmail.com> | 2016-06-09 17:23:55 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2016-06-09 17:23:55 +0300 |
commit | 8978ec39ed65725b73fbfc5ee824cd50fa51e5cc (patch) | |
tree | f63e1eaeffeae3eb55ed59dba556d4a1b15ad28f /test | |
parent | 0dd610fbcbadedfabdd8f159f3f4b5831037e4aa (diff) | |
download | xorg-lib-libxkbcommon-8978ec39ed65725b73fbfc5ee824cd50fa51e5cc.tar.gz |
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 <ran234@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/interactive-wayland.c | 8 |
1 files 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 { |