mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-26 15:33:40 +00:00
31ea93dd0d
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 | ~~~~~~^~~~ |
||
---|---|---|
.. | ||
EGL | ||
OpenGL | ||
CMakeLists.txt |