mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
Shebang parser: add virtual destructor
Fixes: warning: destructor called on non-final 'nix::ParseUnquoted' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
This commit is contained in:
parent
1d86bb4f70
commit
251fb23aea
@ -97,6 +97,8 @@ struct Parser {
|
|||||||
virtual void operator()(std::shared_ptr<Parser> & state, Strings & r) = 0;
|
virtual void operator()(std::shared_ptr<Parser> & state, Strings & r) = 0;
|
||||||
|
|
||||||
Parser(std::string_view s) : remaining(s) {};
|
Parser(std::string_view s) : remaining(s) {};
|
||||||
|
|
||||||
|
virtual ~Parser() { };
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ParseQuoted : public Parser {
|
struct ParseQuoted : public Parser {
|
||||||
|
Loading…
Reference in New Issue
Block a user