diff options
| author | 2020-10-30 15:02:02 -0400 | |
|---|---|---|
| committer | 2020-11-02 15:50:58 -0500 | |
| commit | 4a4b685a0420b0ac7c026cd2370c23d54f469976 (patch) | |
| tree | 8de9e9a72563a369dac5ec8183e417e40ee4b8bf /src/common/fiber.cpp | |
| parent | CMakeLists: Resolve MSVC build failures (diff) | |
| download | yuzu-4a4b685a0420b0ac7c026cd2370c23d54f469976.tar.gz yuzu-4a4b685a0420b0ac7c026cd2370c23d54f469976.tar.xz yuzu-4a4b685a0420b0ac7c026cd2370c23d54f469976.zip | |
common: Enable warnings as errors
Cleans up common so that we can enable warnings as errors.
Diffstat (limited to 'src/common/fiber.cpp')
| -rw-r--r-- | src/common/fiber.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/fiber.cpp b/src/common/fiber.cpp index e186ed880..b209f52fc 100644 --- a/src/common/fiber.cpp +++ b/src/common/fiber.cpp | |||
| @@ -79,9 +79,9 @@ void Fiber::Exit() { | |||
| 79 | released = true; | 79 | released = true; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* start_parameter) { | 82 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* rewind_param) { |
| 83 | rewind_point = std::move(rewind_func); | 83 | rewind_point = std::move(rewind_func); |
| 84 | rewind_parameter = start_parameter; | 84 | rewind_parameter = rewind_param; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | void Fiber::Rewind() { | 87 | void Fiber::Rewind() { |
| @@ -161,9 +161,9 @@ Fiber::Fiber(std::function<void(void*)>&& entry_point_func, void* start_paramete | |||
| 161 | boost::context::detail::make_fcontext(stack_base, impl->stack.size(), FiberStartFunc); | 161 | boost::context::detail::make_fcontext(stack_base, impl->stack.size(), FiberStartFunc); |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* start_parameter) { | 164 | void Fiber::SetRewindPoint(std::function<void(void*)>&& rewind_func, void* rewind_param) { |
| 165 | rewind_point = std::move(rewind_func); | 165 | rewind_point = std::move(rewind_func); |
| 166 | rewind_parameter = start_parameter; | 166 | rewind_parameter = rewind_param; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | Fiber::Fiber() : impl{std::make_unique<FiberImpl>()} {} | 169 | Fiber::Fiber() : impl{std::make_unique<FiberImpl>()} {} |