Describe the bug
When enabling -Wall and -Werror, the library cannot be successfully compiled:
- 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].
- 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 and -Werror.
Desktop (please complete the following information):
- OS: Linux
- Compiler: GCC 7.3
Describe the bug
When enabling
-Walland-Werror, the library cannot be successfully compiled:pulsar-client-cpp/lib/auth/AuthOauth2.h:47:7: error: base class 'class pulsar::CachedToken' has accessible non-virtual destructor [-Werror=non-virtual-dtor]./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
-Walland-Werror.Desktop (please complete the following information):