Files
loongoffice/external/zxing/coroutine.patch.0
Stephan Bergmann e2d3baf0db external/zxing: Silence MSVC 2022 error C3781
> workdir\UnpackedTarball\zxing\core\src\Generator.h(20): error C3781: Generator<ZXing::DetectorResult>::promise_type: a coroutine's promise must declare either 'return_value' or 'return_void'

seen at least when building with --with-latest-c++ against VS 2022 17.5.0
Preview 1.0

Change-Id: Ie69100d87e6cb85526d772e8f0f5d11e1f9d6704
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143853
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2022-12-09 14:26:16 +00:00

12 lines
387 B
Plaintext

--- core/src/Generator.h
+++ core/src/Generator.h
@@ -26,7 +26,7 @@
current_value = std::move(value);
return {};
}
-// void return_value(T&& value) noexcept { current_value = std::move(value); }
+ void return_void() noexcept {}
// Disallow co_await in generator coroutines.
void await_transform() = delete;
[[noreturn]] static void unhandled_exception() { throw; }