tongsucn opened a new issue #7502:
URL: https://github.com/apache/pulsar/issues/7502
**Describe the bug**
When enabling `-Wall`, the library cannot be successfully compiled:
1. Non-virtual destructor in base class:
`pulsar-client-cpp/lib/auth/AuthOauth2.h:47:7: error: base class 'class
pulsar::CachedToken' has accessible non-virtual destructor
[-Werror=non-virtual-dtor]`.
2. Unnecessary NULL checking on function pointer:
`/pulsar-client-cpp/lib/ClientImpl.cc:100:10: error: the address of
'pulsar::Logger* logger()' will never be NULL [-Werror=address]`.
**To Reproduce**
Compile with `-Wall`.
**Desktop (please complete the following information):**
- OS: Linux
- Compiler: GCC 7.3
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]