looking-glass/client/renderers/EGL
Xiretza 31ea93dd0d [client] Fix compiler warnings about potentially uninitialized variables
Build failed with _FORTIFY_SOURCE enabled because the compiler couldn't
ensure the switch statements didn't hit the default arm and thus wouldn't
define the variables. Adding a statically failing assert makes sure that
all code paths either define the variables or fail early.

$ cd client
$ env CFLAGS='-O1 -D_FORTIFY_SOURCE=1' cmake -B build/
$ make -C build
[...]
client/renderers/EGL/egl.c: In function ‘egl_calc_mouse_size’:
client/renderers/EGL/egl.c:299:36: error: ‘h’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  299 |         (this->mouseHeight * (1.0f / h)) * this->scaleY
      |                              ~~~~~~^~~~
2021-01-20 03:05:30 +11:00
..
shader [client] app: rename up,right,down,left rotation to 0,90,180,270 2021-01-19 02:53:47 +11:00
alert.c [client] egl: added DMA texture support for direct upload 2020-10-30 02:36:45 +11:00
alert.h [client] use cmake to generate renderers/fonts/clipboards headers/code 2019-03-28 19:56:14 +11:00
CMakeLists.txt [client] egl: remove no longer used yuv shader 2021-01-15 12:42:16 +11:00
cursor.c [client] all: properly support guest rotation 2021-01-19 02:54:56 +11:00
cursor.h [client] all: properly support guest rotation 2021-01-19 02:54:56 +11:00
debug.c [EGL] add debug printf helper 2019-08-30 11:33:43 +10:00
debug.h [EGL] add debug printf helper 2019-08-30 11:33:43 +10:00
desktop.c [client] fix keybind regression for EGL 2021-01-19 21:12:20 +11:00
desktop.h [client] all: properly support guest rotation 2021-01-19 02:54:56 +11:00
draw.c [client] use cmake to generate renderers/fonts/clipboards headers/code 2019-03-28 19:56:14 +11:00
draw.h [client] use cmake to generate renderers/fonts/clipboards headers/code 2019-03-28 19:56:14 +11:00
egl.c [client] Fix compiler warnings about potentially uninitialized variables 2021-01-20 03:05:30 +11:00
fps.c [client] egl: added DMA texture support for direct upload 2020-10-30 02:36:45 +11:00
fps.h [client] use cmake to generate renderers/fonts/clipboards headers/code 2019-03-28 19:56:14 +11:00
model.c [build] make "common" a static library (part 2/2) 2019-04-11 11:12:59 +10:00
model.h [client] use cmake to generate renderers/fonts/clipboards headers/code 2019-03-28 19:56:14 +11:00
shader.c [build] make "common" a static library (part 2/2) 2019-04-11 11:12:59 +10:00
shader.h [client] added missing include 2019-07-15 18:30:39 +10:00
splash.c [build] make "common" a static library (part 2/2) 2019-04-11 11:12:59 +10:00
splash.h [client] use cmake to generate renderers/fonts/clipboards headers/code 2019-03-28 19:56:14 +11:00
texture.c [client] egl: remove external dependency on libdrm 2021-01-16 22:11:15 +11:00
texture.h [client] egl: added DMA texture support for direct upload 2020-10-30 02:36:45 +11:00