Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redpanda v22.1.x coroutine #22

Merged
merged 2 commits into from
May 24, 2022

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented May 23, 2022

Include fixes for warnings for building with clang 14.

And the change upstream: scylladb#1073

I pulled in the orginal fix so that future merges are easier.

Changes in force-push

since std::experimental::coroutine_traits will be removed in LLVM 15,
let's prepare for this change by including <coroutine> when compiling
clang-15 and up.

without this change, when compiling an application using Seastar
coroutine, we could run into following warning:

/home/kefu/dev/redpanda/src/v/net/server.cc:141:19: error: support for std::experimental::coroutine_traits will be removed in LLVM 15; use std::coroutine_traits instead [-Werror,-Wdeprecated-experimental-coroutine]
                  co_return ss::stop_iteration::yes;
                  ^
/home/kefu/dev/redpanda/build/deps_install/include/seastar/core/std-coroutine.hh:124:7: note: 'coroutine_traits' declared here
class coroutine_traits { };
      ^
1 error generated.

after this change, the warning is gone.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Message-Id: <20220417023709.2387661-1-tchaikov@gmail.com>
(cherry picked from commit 0a8eea3)
@BenPope BenPope requested review from dotnwat and jcsp May 23, 2022 20:39
since std::experimental::coroutine_traits will be removed in LLVM 15,
but are available in LLVM-14.

Update the check to prevent the warning for LLVM-14, as well..

This is a followup to 0a8eea3

Signed-off-by: Ben Pope <ben@redpanda.com>

Closes scylladb#1073

(cherry picked from commit 070ab10)
@BenPope BenPope force-pushed the redpanda-v22.1.x-coroutine branch from 58a3912 to 460ca88 Compare May 24, 2022 09:32
@BenPope
Copy link
Member Author

BenPope commented May 24, 2022

This is an alternative fix that doesn't rely on a seastar update, but won't help with open source builds: https://github.com/redpanda-data/vtools/pull/681

@jcsp jcsp merged commit 0fd17f4 into redpanda-data:master May 24, 2022
BenPope added a commit to BenPope/redpanda that referenced this pull request May 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants