libc: Mark Libc::Vfs_plugin class as final.

The class has final destructor, but is not itself final. This prompts
clang to produce the following warning message:

class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
                ~Vfs_plugin() final { }
                              ^
vfs_plugin.h:39:13: note: mark 'Libc::Vfs_plugin' as 'final' to silence this warning

Issue #3985
This commit is contained in:
Piotr Tworek 2021-01-12 00:45:48 +01:00 committed by Norman Feske
parent 395a9b5bf5
commit 71abfb3b4f

View File

@ -36,7 +36,7 @@
namespace Libc { class Vfs_plugin; }
class Libc::Vfs_plugin : public Plugin
class Libc::Vfs_plugin final : public Plugin
{
public: