aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2023-01-24 21:57:24 +0100
committerGitHub <noreply@github.com>2023-01-24 21:57:24 +0100
commit189261c3449b602e979519844529d1adb2767f71 (patch)
tree53b42f267299b79aea07b3b3aaada574bfa9616f
parentf233fd496db07212125696613ac085506e2be805 (diff)
parent734c5fdcd62ead1b28e7f7fa3962ce0b542d5846 (diff)
Merge pull request #7681 from layus/virtual-destructor-warning
Fix 'destructor called on non-final ...' warning
-rw-r--r--src/libutil/error.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh
index 7d236028c..0ebeaba61 100644
--- a/src/libutil/error.hh
+++ b/src/libutil/error.hh
@@ -74,6 +74,8 @@ struct AbstractPos
virtual void print(std::ostream & out) const = 0;
std::optional<LinesOfCode> getCodeLines() const;
+
+ virtual ~AbstractPos() = default;
};
std::ostream & operator << (std::ostream & str, const AbstractPos & pos);