Skip to content

Commit cce644f

Browse files
Fix warnings
The `appender` class is intended to be inherited and used polymorphically, but does not have a virtual destructor, which causes warnings. This adds a virtual destructor to fix these warnings.
1 parent 1d2d9bf commit cce644f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/fc/log/appender.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ namespace fc {
3434
return register_appender( type, appender_factory::ptr( new detail::appender_factory_impl<T>() ) );
3535
}
3636

37+
virtual ~appender() = default;
3738
static appender::ptr create( const std::string& name, const std::string& type, const variant& args );
3839
static appender::ptr get( const std::string& name );
3940
static bool register_appender( const std::string& type, const appender_factory::ptr& f );

0 commit comments

Comments
 (0)