Skip to content

Fixed a compile warning into the periodic_task.#1150

Closed
proydakov wants to merge 1 commit intouserver-framework:developfrom
proydakov:comple_warnings
Closed

Fixed a compile warning into the periodic_task.#1150
proydakov wants to merge 1 commit intouserver-framework:developfrom
proydakov:comple_warnings

Conversation

@proydakov
Copy link
Contributor

@proydakov proydakov commented Mar 21, 2026

Hello, @apolukhin.

Could you review and accept my change, pls?

[1848/2256] Building CXX object core/CMakeFiles/userver-core.dir/src/utils/periodic_task.cpp.o /home/proydakov/repository/userver/core/src/utils/periodic_task.cpp: In function ‘void userver::v2_16_rc::utils::StartPeriodicTask(PeriodicTask&, std::string, const PeriodicTask::Settings&, PeriodicTask::Callback, userver::v2_16_rc::testsuite::TestsuiteTasks&)’: /home/proydakov/repository/userver/core/src/utils/periodic_task.cpp:328:55: warning: redundant move in initialization [-Wredundant-move]
328 | periodic_task.Start(std::move(name), std::move(settings), std::move(callback));
| ~~~~~~~~~^~~~~~~~~~
/home/proydakov/repository/userver/core/src/utils/periodic_task.cpp:328:55: note: remove ‘std::move’ call
At global scope:

Best regards, Evgeny Proydakov.


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

[1848/2256] Building CXX object core/CMakeFiles/userver-core.dir/src/utils/periodic_task.cpp.o
/home/proydakov/repository/userver/core/src/utils/periodic_task.cpp: In function ‘void userver::v2_16_rc::utils::StartPeriodicTask(PeriodicTask&, std::string, const PeriodicTask::Settings&, PeriodicTask::Callback, userver::v2_16_rc::testsuite::TestsuiteTasks&)’:
/home/proydakov/repository/userver/core/src/utils/periodic_task.cpp:328:55: warning: redundant move in initialization [-Wredundant-move]
  328 |         periodic_task.Start(std::move(name), std::move(settings), std::move(callback));
      |                                              ~~~~~~~~~^~~~~~~~~~
/home/proydakov/repository/userver/core/src/utils/periodic_task.cpp:328:55: note: remove ‘std::move’ call
At global scope:

Signed-off-by: Evgeny Proydakov <e.proydakov@gmail.com>
@apolukhin
Copy link
Member

LGTM

@robot-magpie
Copy link

robot-magpie bot commented Mar 21, 2026

Many thanks for the PR! @apolukhin is now importing your pull request into our internal upstream repository.

@robot-magpie
Copy link

robot-magpie bot commented Mar 23, 2026

✅ This pull request is being closed because it has been successfully merged into our internal monorepository.
Your changes will be pushed to this repository soon. Thank you for your contribution!

@robot-magpie robot-magpie bot closed this Mar 23, 2026
robot-piglet pushed a commit that referenced this pull request Mar 23, 2026
```
[1848/2256] Building CXX object core/CMakeFiles/userver-core.dir/src/utils/periodic_task.cpp.o /home/proydakov/repository/userver/core/src/utils/periodic_task.cpp: In function ‘void userver::v2_16_rc::utils::StartPeriodicTask(PeriodicTask&, std::string, const PeriodicTask::Settings&, PeriodicTask::Callback, userver::v2_16_rc::testsuite::TestsuiteTasks&)’: /home/proydakov/repository/userver/core/src/utils/periodic_task.cpp:328:55: warning: redundant move in initialization [-Wredundant-move]
  328 |         periodic_task.Start(std::move(name), std::move(settings), std::move(callback));
      |                                              ~~~~~~~~~^~~~~~~~~~
/home/proydakov/repository/userver/core/src/utils/periodic_task.cpp:328:55: note: remove ‘std::move’ call
At global scope:
```

---

Pull Request resolved: #1150
commit_hash:cabd28df492569e029f334ea1e18da41d5f45b57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants