desktop-shell: fix shell_output_destroy_move_layer unused variable
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 13 Feb 2018 14:18:05 +0000 (16:18 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 14 Feb 2018 08:03:36 +0000 (10:03 +0200)
commit9350bfd9165086e95c7b15e347f1581dc05bf22d
tree7bb201d7807f09caa4b0c0e5dd2c1a77c20f5d7f
parent5b0aa55d9e20d44f974e016e90a309260e8fd1f3
desktop-shell: fix shell_output_destroy_move_layer unused variable

/home/pq/git/weston/desktop-shell/shell.c: In function ‘shell_output_destroy_move_layer’:
/home/pq/git/weston/desktop-shell/shell.c:4718:24: warning: unused variable ‘output’ [-Wunused-variable]
  struct weston_output *output = data;

Since the data pointer is not used for anything, decided to also set it
to NULL in the caller. This caused another variable to become unused.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Marius-Vlad <marius-cristian.vlad@nxp.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
desktop-shell/shell.c