Skip to content

Fix clang compiler warnings#62

Merged
ryanofsky merged 3 commits intobitcoin-core:masterfrom
ryanofsky:pr/cwarn
Dec 22, 2021
Merged

Fix clang compiler warnings#62
ryanofsky merged 3 commits intobitcoin-core:masterfrom
ryanofsky:pr/cwarn

Conversation

@ryanofsky
Copy link
Copy Markdown
Collaborator

Avoid and suppress various warnings reported in #61

Warnings look like "warning: 'initError' overrides a member function but
is not marked 'override' [-Wsuggest-override]"

Warnings were originally reported by Sjors Provoost <sjors@sprovoost.nl>
and are tracked in
bitcoin-core#61

The same warnings were previously disabled for GCC in
05f9817
bitcoin-core#40 and that change
is extended here to apply to clang. The methods triggering the warnings
are not virtual in all cases and should not have the override keyword.
Warnings look like "warning: destructor called on non-final
'mp::ProxyClient<ipc::capnp::messages::ActorCallback>' that has virtual
functions but non-virtual destructor
[-Wdelete-non-abstract-non-virtual-dtor]"

Warnings were originally reported by Sjors Provoost <sjors@sprovoost.nl>
and are tracked in
bitcoin-core#61

Avoid these by adding final keywords to generated class declarations
…backImpl

Warnings look like "warning: destructor called on non-final
'mp::ProxyCallbackImpl<void>' that has virtual functions but non-virtual
destructor [-Wdelete-non-abstract-non-virtual-dtor]"

Avoid these by adding final keyword to class declaration
@ryanofsky ryanofsky merged commit 306c8b1 into bitcoin-core:master Dec 22, 2021
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jun 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant