From 1f186be030e839173e8615f09aa12568b21b2c55 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 10 Dec 2017 19:53:55 -0500 Subject: [PATCH] input_common/sdl: Silence a -Wpessimizing-move warning Moving when returning by value can inhibit copy elision. --- src/input_common/sdl/sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input_common/sdl/sdl.cpp b/src/input_common/sdl/sdl.cpp index 88b557c5dc..3b87d6b652 100644 --- a/src/input_common/sdl/sdl.cpp +++ b/src/input_common/sdl/sdl.cpp @@ -425,7 +425,7 @@ std::vector> GetPollers( pollers.push_back(std::make_unique()); break; } - return std::move(pollers); + return pollers; } } // namespace Polling } // namespace SDL