diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2016-09-22 11:13:08 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-09-28 12:55:09 +0200 |
commit | d9d2663c336b4ff7af9528f2cd3736791f4c0da5 (patch) | |
tree | 3f8f98c2db01794b93a1b484d99d01ecef43fc64 /ui/gtk.c | |
parent | 4423184376dc85849b2d7b4660e7feeb2b38bf6f (diff) |
ui/vnc-enc-tight: remove switch and have single return
When enabling the sanitizer build it will complain about control
reaching a non-void function. Normally the compiler should detect that
there is only one possible exit given a static VNC_SERVER_FB_BYTES.
As we always expect a static VNC_SERVER_FB_BYTES I've added a compile
time assert and just called the sub-function directly.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/gtk.c')
0 files changed, 0 insertions, 0 deletions