mirror of https://github.com/Genymobile/scrcpy
Fix proc_show_touches warning
In practice, proc_show_touches may not be used uninitialized, since it checks the flag options->show_touches, but the compiler can't know that, so initialize it to avoid the warning.
This commit is contained in:
parent
bb3a7f05ac
commit
e3d0a59c80
|
@ -125,7 +125,7 @@ SDL_bool scrcpy(const struct scrcpy_options *options) {
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
process_t proc_show_touches;
|
||||
process_t proc_show_touches = PROCESS_NONE;
|
||||
SDL_bool show_touches_waited;
|
||||
if (options->show_touches) {
|
||||
LOGI("Enable show_touches");
|
||||
|
|
Loading…
Reference in New Issue