From f856396131bdacd1594e6a732cb9422f43d7e211 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Sun, 19 Apr 2020 21:10:12 +0300 Subject: [core] Fix -Werror={pessimizing,redundant}-move from GCC 9 --- src/mbgl/gl/program.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mbgl/gl/program.hpp') diff --git a/src/mbgl/gl/program.hpp b/src/mbgl/gl/program.hpp index 6cfe05bf54..dbac6841f4 100644 --- a/src/mbgl/gl/program.hpp +++ b/src/mbgl/gl/program.hpp @@ -72,9 +72,7 @@ public: (programs::gl::shaderSource() + programs::gl::fragmentPreludeOffset), (programs::gl::shaderSource() + fragmentOffset) }; - auto result = std::make_unique(context, vertexSource, fragmentSource); - - return std::move(result); + return std::make_unique(context, vertexSource, fragmentSource); } UniqueProgram program; -- cgit v1.2.1