From eb335f51ca15774330219a9c65778db39cdebac1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 18 Mar 2019 11:32:49 -0400 Subject: input_common/sdl: Correct return values within implementations of GetPollers() In both cases, we weren't actually returning anything, which is undefined behavior. --- src/input_common/sdl/sdl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/input_common/sdl/sdl.h') diff --git a/src/input_common/sdl/sdl.h b/src/input_common/sdl/sdl.h index 940ca7f1b..d7f24c68a 100644 --- a/src/input_common/sdl/sdl.h +++ b/src/input_common/sdl/sdl.h @@ -34,7 +34,9 @@ public: class NullState : public State { public: - Pollers GetPollers(Polling::DeviceType type) override {} + Pollers GetPollers(Polling::DeviceType type) override { + return {}; + } }; std::unique_ptr Init(); -- cgit v1.2.3