mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-02-15 00:39:55 +00:00
Fix and enable -Wmissing-braces
This commit is contained in:
parent
390dc1c245
commit
ff046bb707
@ -140,7 +140,7 @@ endif()
|
||||
|
||||
find_package(Boost COMPONENTS locale log filesystem program_options REQUIRED)
|
||||
|
||||
list(APPEND SUNSHINE_COMPILE_OPTIONS -Wall -Wno-missing-braces -Wno-sign-compare)
|
||||
list(APPEND SUNSHINE_COMPILE_OPTIONS -Wall -Wno-sign-compare)
|
||||
|
||||
# enable system tray, we will disable this later if we cannot find the required package config on linux
|
||||
set(SUNSHINE_TRAY 1)
|
||||
|
@ -132,7 +132,7 @@ namespace input {
|
||||
touch_port_event { std::move(touch_port_event) },
|
||||
rumble_queue { std::move(rumble_queue) },
|
||||
mouse_left_button_timeout {},
|
||||
touch_port { 0, 0, 0, 0, 0, 0, 1.0f } {}
|
||||
touch_port { { 0, 0, 0, 0 }, 0, 0, 1.0f } {}
|
||||
|
||||
// Keep track of alt+ctrl+shift key combo
|
||||
int shortcutFlags;
|
||||
|
14
src/upnp.cpp
14
src/upnp.cpp
@ -147,17 +147,17 @@ namespace upnp {
|
||||
auto wm_http = std::to_string(map_port(confighttp::PORT_HTTPS));
|
||||
|
||||
std::vector<mapping_t> mappings {
|
||||
{ rtsp, rtsp, "RTSP setup port"s, true },
|
||||
{ video, video, "Video stream port"s, false },
|
||||
{ audio, audio, "Control stream port"s, false },
|
||||
{ control, control, "Audio stream port"s, false },
|
||||
{ gs_http, gs_http, "Gamestream http port"s, true },
|
||||
{ gs_https, gs_https, "Gamestream https port"s, true },
|
||||
{ { rtsp, rtsp }, "RTSP setup port"s, true },
|
||||
{ { video, video }, "Video stream port"s, false },
|
||||
{ { audio, audio }, "Control stream port"s, false },
|
||||
{ { control, control }, "Audio stream port"s, false },
|
||||
{ { gs_http, gs_http }, "Gamestream http port"s, true },
|
||||
{ { gs_https, gs_https }, "Gamestream https port"s, true },
|
||||
};
|
||||
|
||||
// Only map port for the Web Manager if it is configured to accept connection from WAN
|
||||
if (net::from_enum_string(config::nvhttp.origin_web_ui_allowed) > net::LAN) {
|
||||
mappings.emplace_back(mapping_t { wm_http, wm_http, "Sunshine Web UI port"s, true });
|
||||
mappings.emplace_back(mapping_t { { wm_http, wm_http }, "Sunshine Web UI port"s, true });
|
||||
}
|
||||
|
||||
auto it = std::begin(mappings);
|
||||
|
@ -1454,10 +1454,12 @@ namespace video {
|
||||
auto offsetY = (config.height - h2) * 0.5f;
|
||||
|
||||
return input::touch_port_t {
|
||||
display->offset_x,
|
||||
display->offset_y,
|
||||
config.width,
|
||||
config.height,
|
||||
{
|
||||
display->offset_x,
|
||||
display->offset_y,
|
||||
config.width,
|
||||
config.height,
|
||||
},
|
||||
display->env_width,
|
||||
display->env_height,
|
||||
offsetX,
|
||||
|
Loading…
x
Reference in New Issue
Block a user