From 1da76dde7d1ae428ac68af53d7289e52abb63f1d Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 30 Jun 2018 21:53:55 +0000 Subject: [PATCH] Fix SDL-only build of gauges.cpp Even when empty and default-constructible, const members must be explicitly constructed. Add a default constructor to do this. Fixes: 893e8cde06f442b7b5f7f62a5c8dd5e40a26c983 ("Combine hud gauge parameters") --- similar/main/gauges.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/similar/main/gauges.cpp b/similar/main/gauges.cpp index 2906adc57..ddd477cd2 100644 --- a/similar/main/gauges.cpp +++ b/similar/main/gauges.cpp @@ -554,6 +554,11 @@ struct hud_draw_context_xyscale xscale(x), yscale(y) { } +#else + constexpr hud_draw_context_xyscale() : + xscale{}, yscale{} + { + } #endif };