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

Fix[bmqstoragetool, bmq, mqb]: Fix several warnings #540

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

hallfox
Copy link
Collaborator

@hallfox hallfox commented Dec 7, 2024

m_bmqstoragetool

FileManager

  • Follow ISO C++ destructor rules

FileManagerMock

  • Fix weak-vtable

SearchShortResult

  • Remove unused d_allocator_p parameter
  • Add allocator() method to retrieve allocator from subobject

bmq

bmqa_mocksession

  • Remove unused const overload of uriCorrIdToQueues

bmqma_countingallocator

  • Properly mark CountingAllocator::configureStatContextTableInfoProvider as deprecated

bmqtst_logcontroller

  • Add missing cases in switch statement

mqb

mqba_commandrouter

  • Mark CommandRouter::ClusterWideRoutingMode::getRouteTargets errorDescription as unused
  • Move RoutingMode::~RoutingMode() to implementation file

mqba_sessionnegotiator

  • Escape '@' character used by doxygen special command parsing

mqbcfg_tcpinterfaceconfigvalidator

  • Add newline to end of header

mqbi_queueengine

  • Mark QueueEngine::logAppSubscription appId as unused

mqbmock_storagemanager

  • Force assertion failure for unimplemented StorageManager::fileStore

mqbnet_tcpsessionfactory

  • Remove unused channelCast() helper

@hallfox hallfox requested a review from a team as a code owner December 7, 2024 00:09
@hallfox hallfox requested review from a team and removed request for a team December 7, 2024 00:13
@hallfox hallfox changed the title Fix several warnings Fix[bmqstoragetool, bmq, mqb]: Fix several warnings Dec 7, 2024
Copy link
Collaborator

@678098 678098 left a comment

Choose a reason for hiding this comment

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

Will reapprove once it passes the CI, the changes are good otherwise

@@ -262,25 +262,6 @@ struct PortMatcher {
return listener.port() == d_port;
}
};

template <typename T>
T* channelCast(bmqio::Channel* base)
Copy link
Contributor

Choose a reason for hiding this comment

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

This was just dead code we never removed? Happy to see it removed :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

This might be related to TLS change, where we were needed to find a concrete bmqio::Channel implementation within the chain of nested bmqio::Channels

m_bmqstoragetool
================

FileManager
- Follow ISO C++ destructor rules

FileManagerMock
- Fix weak-vtable

SearchShortResult
- Remove unused d_allocator_p parameter
- Add allocator() method to retrieve allocator from subobject

bmq
===

bmqa_mocksession
- Remove unused const overload of uriCorrIdToQueues

bmqma_countingallocator
- Properly mark CountingAllocator::configureStatContextTableInfoProvider
as deprecated

bmqtst_logcontroller
- Add missing cases in switch statement

mqb
===

mqba_commandrouter
- Mark CommandRouter::ClusterWideRoutingMode::getRouteTargets
errorDescription as unused
- Move RoutingMode::~RoutingMode() to implementation file

mqba_sessionnegotiator
- Escape '@' character used by doxygen special command parsing

mqbcfg_tcpinterfaceconfigvalidator
- Add newline to end of header

mqbi_queueengine
- Mark QueueEngine::logAppSubscription appId as unused

mqbmock_storagemanager
- Force assertion failure for unimplemented StorageManager::fileStore

mqbnet_tcpsessionfactory
- Remove unused channelCast() helper

Signed-off-by: Taylor Foxhall <[email protected]>
@hallfox hallfox merged commit 81f9fe2 into bloomberg:main Dec 9, 2024
34 of 35 checks passed
@hallfox hallfox deleted the fix-warnings branch December 10, 2024 22:21
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.

3 participants