Skip to content

Commit 5fbde9e

Browse files
authored
[SYCL] Fix post-commit warning treated as error (#7173)
Compiler emits a warning when there is a return of std::move of a local variable.
1 parent 547ac1e commit 5fbde9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/scheduler/scheduler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class Scheduler {
469469
// It is a deadlock on UNIX in implementation of lock and lock_shared, if
470470
// try_lock in the loop above will be executed, so using a single lock here
471471
#endif // _WIN32
472-
return std::move(Lock);
472+
return Lock;
473473
}
474474

475475
/// Provides shared access to std::shared_timed_mutex object with deadlock

0 commit comments

Comments
 (0)