Skip to content

Commit

Permalink
Shebang parser: add virtual destructor
Browse files Browse the repository at this point in the history
Fixes the warning.
  • Loading branch information
roberth committed Nov 19, 2023
1 parent 1d86bb4 commit a23cce3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libutil/args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ struct Parser {
virtual void operator()(std::shared_ptr<Parser> & state, Strings & r) = 0;

Parser(std::string_view s) : remaining(s) {};

virtual ~Parser() { };
};

struct ParseQuoted : public Parser {
Expand Down

0 comments on commit a23cce3

Please sign in to comment.