mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-18 12:31:21 +00:00
[client] all: fix more maybe-uninitialized
when -O3
is in use
Closes #475
This commit is contained in:
parent
9e2cfb9106
commit
8771103abb
@ -335,7 +335,8 @@ static void egl_calc_mouse_size(struct Inst * this)
|
|||||||
if (!this->formatValid)
|
if (!this->formatValid)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int w, h;
|
int w = 0, h = 0;
|
||||||
|
|
||||||
switch(this->format.rotate)
|
switch(this->format.rotate)
|
||||||
{
|
{
|
||||||
case LG_ROTATE_0:
|
case LG_ROTATE_0:
|
||||||
|
@ -176,8 +176,9 @@ void core_updatePositionInfo(void)
|
|||||||
if (!g_state.haveSrcSize)
|
if (!g_state.haveSrcSize)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
float srcW;
|
float srcW = 0.0f;
|
||||||
float srcH;
|
float srcH = 0.0f;
|
||||||
|
|
||||||
switch(g_params.winRotate)
|
switch(g_params.winRotate)
|
||||||
{
|
{
|
||||||
case LG_ROTATE_0:
|
case LG_ROTATE_0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user