moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.49k stars 324 forks source link

Fix bugs found by compiler warnings #744

Closed cgutman closed 5 years ago

cgutman commented 5 years ago

Description I was tracking down why we ended up with a bogus gamepad_mask value using -Wall and found several other bugs in the process.

Purpose Fixes gamepad_mask to avoid falsely claiming to have a connected gamepad when one is not present. Fixes loop_remove_fd() to work correctly for fds beyond the first in the array