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

Fixes pointed out by clang #104

Merged
merged 2 commits into from Nov 22, 2023
Merged

Fixes pointed out by clang #104

merged 2 commits into from Nov 22, 2023

Conversation

clalancette
Copy link
Contributor

  1. Make one of the SubscriptionBase::subscribe methods pure virtual. That's because it only ever called itself, which is nonsensical. That just means that all classes that derive from it must implement it.
  2. Make clang aware that one of the tests here just wants to test that equality doesn't throw, so we don't care about the result.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
As it stood, it was only ever calling itself, which
was pointed out by clang as an infinite recursion.
It only makes sense if a downstream class overrides this
method, so mark it as pure virtual here.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette
Copy link
Contributor Author

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with green CI

@clalancette clalancette merged commit 431bd99 into rolling Nov 22, 2023
2 checks passed
@delete-merged-branch delete-merged-branch bot deleted the clalancette/clang-fixes branch November 22, 2023 13:30
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.

None yet

2 participants