diff --git a/src/video/video_system.cpp b/src/video/video_system.cpp index 5c1321f80b6..a3f469adefc 100644 --- a/src/video/video_system.cpp +++ b/src/video/video_system.cpp @@ -190,7 +190,11 @@ VideoSystem::do_take_screenshot() oss << "screenshot" << std::setw(6) << std::setfill('0') << num << ".png"; const std::string screenshot_filename = FileSystem::join(screenshots_dir, oss.str()); if (!PHYSFS_exists(screenshot_filename.c_str())) { - return screenshot_filename; + #ifdef __clang__ + return std::move(screenshot_filename); + #else + return screenshot_filename; + #endif } } return std::nullopt;