diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ea49632..8920b8ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/input.cpp b/src/input.cpp index 3bc4756c..6688fc5c 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -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; diff --git a/src/upnp.cpp b/src/upnp.cpp index 6b0cc703..34c8d406 100644 --- a/src/upnp.cpp +++ b/src/upnp.cpp @@ -147,17 +147,17 @@ namespace upnp { auto wm_http = std::to_string(map_port(confighttp::PORT_HTTPS)); std::vector 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); diff --git a/src/video.cpp b/src/video.cpp index 593e9f4f..677368a7 100644 --- a/src/video.cpp +++ b/src/video.cpp @@ -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,